~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/command_replicator.cc

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "drizzled/global.h"
21
21
 
 
22
#include "drizzled/plugin/plugin.h"
 
23
#include "drizzled/plugin/command_replicator.h"
22
24
#include "drizzled/replication_services.h"
23
 
#include "drizzled/service/command_replicator.h"
24
25
 
25
26
using namespace std;
26
 
using namespace drizzled;
27
 
 
28
 
void service::CommandReplicator::add(plugin::CommandReplicator *replicator)
 
27
 
 
28
namespace drizzled
 
29
{
 
30
 
 
31
void plugin::CommandReplicator::add(plugin::CommandReplicator *replicator)
29
32
{
30
33
  ReplicationServices &replication_services= ReplicationServices::singleton();
31
34
  replication_services.attachReplicator(replicator);
32
35
}
33
36
 
34
 
void service::CommandReplicator::remove(plugin::CommandReplicator *replicator)
 
37
void plugin::CommandReplicator::remove(plugin::CommandReplicator *replicator)
35
38
{
36
39
  ReplicationServices &replication_services= ReplicationServices::singleton();
37
40
  replication_services.detachReplicator(replicator);
38
41
}
39
42
 
40
 
 
 
43
}