~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/transaction_reader.cc

  • Committer: lbieber
  • Date: 2010-10-08 04:41:29 UTC
  • mfrom: (1822.1.2 build)
  • Revision ID: lbieber@orisndriz08-20101008044129-o3ba457zk60i0spn
Merge Brian - When we were dropping a table we were doing a lookup that we no longer need to do.
Merge Shrews - fix bug 656474: transaction_reader not outputting ROLLBACKs

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
    if (should_commit)
175
175
      should_commit= isEndStatement(statement);
176
176
 
 
177
    /* A ROLLBACK would be the only Statement within the Transaction
 
178
     * since all other Statements will have been deleted from the
 
179
     * Transaction message, so we should fall out of this loop immediately.
 
180
     * We don't want to issue an unnecessary COMMIT, so we change
 
181
     * should_commit to false here.
 
182
     */
 
183
    if (statement.type() == message::Statement::ROLLBACK)
 
184
      should_commit= false;
 
185
 
177
186
    printStatement(statement);
178
187
  }
179
188