~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/transaction_replicator.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:
20
20
#include "drizzled/global.h"
21
21
 
22
22
#include "drizzled/replication_services.h"
23
 
#include "drizzled/plugin/command_replicator.h"
 
23
#include "drizzled/plugin/transaction_replicator.h"
24
24
 
25
25
using namespace std;
26
26
 
27
27
namespace drizzled
28
28
{
29
29
 
30
 
bool plugin::CommandReplicator::addPlugin(plugin::CommandReplicator *replicator)
 
30
bool plugin::TransactionReplicator::addPlugin(plugin::TransactionReplicator *replicator)
31
31
{
32
32
  ReplicationServices &replication_services= ReplicationServices::singleton();
33
33
  /** @TODO ReplicationServices should indicate error in some way here */
35
35
  return false;
36
36
}
37
37
 
38
 
void plugin::CommandReplicator::removePlugin(plugin::CommandReplicator *replicator)
 
38
void plugin::TransactionReplicator::removePlugin(plugin::TransactionReplicator *replicator)
39
39
{
40
40
  ReplicationServices &replication_services= ReplicationServices::singleton();
41
41
  replication_services.detachReplicator(replicator);