~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/transaction_services.cc

  • Committer: Monty Taylor
  • Date: 2009-04-10 18:49:47 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410184947-3pm3yppi0di5pien
Hooked transaction_services into Plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#include "drizzled/message/table.pb.h"
50
50
#include "drizzled/gettext.h"
51
51
#include "drizzled/session.h"
 
52
#include "drizzled/plugin_registry.h"
52
53
 
53
54
#include <vector>
54
55
 
55
56
drizzled::TransactionServices transaction_services;
56
57
 
 
58
void add_replicator(drizzled::plugin::Replicator *repl)
 
59
{
 
60
  transaction_services.attachReplicator(repl);
 
61
}
 
62
 
57
63
/**
58
64
 * @TODO
59
65
 *
84
90
  if (repl == NULL)
85
91
    return 1;
86
92
 
87
 
  transaction_services.attachReplicator(repl);
 
93
  Plugin_registry &registry= Plugin_registry::get_plugin_registry();
 
94
  registry.registerPlugin(repl);
 
95
 
88
96
  plugin->data= repl;
89
97
 
90
98
  return 0;