~skinny.moey/drizzle/transaction_log_674588

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Joseph Daly
  • Date: 2010-11-17 03:47:29 UTC
  • Revision ID: skinny.moey@gmail.com-20101117034729-i0h9qmmzpayajfog
move the call to allocate the trx id  to the exact place its needed having it in write_bin_log will result in it being allocated where it is not needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1035
1035
 
1036
1036
      if (error == 0)
1037
1037
      {
 
1038
        TransactionServices &transaction_services= TransactionServices::singleton();
 
1039
        transaction_services.allocateNewTransactionId();
1038
1040
        write_bin_log(session, *session->getQueryString());
1039
1041
        session->my_ok();
1040
1042
      }