~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/default_replicator/default_replicator.cc

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
static bool sysvar_default_replicator_enable= false;
53
53
 
54
 
bool DefaultReplicator::isActive()
 
54
bool DefaultReplicator::isActive() const
55
55
{
56
56
  return sysvar_default_replicator_enable;
57
57
}
58
58
 
 
59
void DefaultReplicator::activate()
 
60
{
 
61
  sysvar_default_replicator_enable= true;
 
62
}
 
63
 
 
64
void DefaultReplicator::deactivate()
 
65
{
 
66
  sysvar_default_replicator_enable= false;
 
67
}
 
68
 
59
69
void DefaultReplicator::replicate(plugin::CommandApplier *in_applier, message::Command &to_replicate)
60
70
{
61
71
  /* 
75
85
 
76
86
static int init(drizzled::plugin::Registry &registry)
77
87
{
78
 
  default_replicator= new DefaultReplicator();
 
88
  default_replicator= new DefaultReplicator("default_replicator");
79
89
  registry.add(default_replicator);
80
90
  return 0;
81
91
}