~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Jay Pipes
  • Date: 2009-10-07 23:59:47 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1193.
  • Revision ID: jpipes@serialcoder-20091007235947-18simrecnzwv8t1q
Phase 2 new replication work:

* Removes old replication.proto file, old command_transform library
* Removes use of korr.h macro calls in favor of GPB's CodedOutputStream
  API.
* Updates transaction_log, default_replicator, and filtered_replicator module
  to use new Transaction message.
* Updates ReplicationServices to construct the new Transaction messages and
  associated Statement sub-messages
* Corrects transaction boundaries.  AUTOCOMMIT now works properly, and I have
  added a new test case to verify AUTOCOMMIT variable modification of the way
  in which Transaction messages are bundled up and sent across to replicators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
      }
649
649
    }
650
650
    error=ha_commit_one_phase(session, all) ? (cookie ? 2 : 1) : 0;
 
651
    if (error == 0)
 
652
    {
 
653
      if (is_real_trans)
 
654
      {
 
655
        /* 
 
656
         * We commit the normal transaction by finalizing the transaction message
 
657
         * and propogating the message to all registered replicators.
 
658
         */
 
659
        ReplicationServices &replication_services= ReplicationServices::singleton();
 
660
        replication_services.commitNormalTransaction(session);
 
661
      }
 
662
    }
651
663
end:
652
664
    if (is_real_trans)
653
665
      start_waiting_global_read_lock(session);