~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/replication_dictionary/module.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 * THE POSSIBILITY OF SUCH DAMAGE.
30
30
 */
31
31
 
32
 
#include "config.h"
 
32
#include <config.h>
33
33
#include "streams.h"
34
34
 
35
35
using namespace std;
39
39
 
40
40
static int init(module::Context &context)
41
41
{
42
 
  streams_tool= new (nothrow) ReplicationStreamsTool;
43
 
 
44
 
  if (streams_tool != NULL)
45
 
  {
46
 
    context.add(streams_tool);
47
 
    return 0;
48
 
  }
49
 
  else
50
 
  {
51
 
    // error?
52
 
    return 1;
53
 
  }
 
42
  streams_tool= new ReplicationStreamsTool;
 
43
  context.add(streams_tool);
 
44
  return 0;
54
45
}
55
46
 
56
47
DRIZZLE_PLUGIN(init, NULL, NULL);