~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/replication_services.cc

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008-2009 Sun Microsystems
5
 
 *  Copyright (c) 2009-2010 Jay Pipes <jaypipes@gmail.com>
 
4
 *  Copyright (C) 2008-2009 Sun Microsystems, Inc.
 
5
 *  Copyright (C) 2009-2010 Jay Pipes <jaypipes@gmail.com>
6
6
 *
7
7
 *  Authors:
8
8
 *
34
34
 * ReplicationServices is a bridge between replication modules and the kernel,
35
35
 * and its primary function is to  */
36
36
 
37
 
#include "config.h"
38
 
#include "drizzled/replication_services.h"
39
 
#include "drizzled/plugin/transaction_replicator.h"
40
 
#include "drizzled/plugin/transaction_applier.h"
41
 
#include "drizzled/message/transaction.pb.h"
42
 
#include "drizzled/gettext.h"
43
 
#include "drizzled/session.h"
44
 
#include "drizzled/error.h"
 
37
#include <config.h>
 
38
#include <drizzled/replication_services.h>
 
39
#include <drizzled/plugin/transaction_replicator.h>
 
40
#include <drizzled/plugin/transaction_applier.h>
 
41
#include <drizzled/message/transaction.pb.h>
 
42
#include <drizzled/gettext.h>
 
43
#include <drizzled/session.h>
 
44
#include <drizzled/error.h>
45
45
 
46
46
#include <string>
47
47
#include <vector>
90
90
 
91
91
  if (replicators.empty() && not appliers.empty())
92
92
  {
93
 
    errmsg_printf(ERRMSG_LVL_ERROR,
 
93
    errmsg_printf(error::ERROR,
94
94
                  N_("You registered a TransactionApplier plugin but no "
95
95
                     "TransactionReplicator plugins were registered.\n"));
96
96
    return false;
121
121
    }
122
122
    if (not found)
123
123
    {
124
 
      errmsg_printf(ERRMSG_LVL_ERROR,
 
124
      errmsg_printf(error::ERROR,
125
125
                    N_("You registered a TransactionApplier plugin but no "
126
126
                       "TransactionReplicator plugins were registered that match the "
127
127
                       "requested replicator name of '%s'.\n"