~chillycreator/drizzle/drizzle-fix

« back to all changes in this revision

Viewing changes to drizzled/plugin/transaction_applier.h

  • Committer: Brian Aker
  • Date: 2010-04-06 06:50:19 UTC
  • mfrom: (1405.3.9 replication-api)
  • Revision ID: brian@gaz-20100406065019-n387mztxp1i75qel
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
4
 *  Copyright (C) 2008-2009 Sun Microsystems
 
5
 *  Copyright (c) 2010 Jay Pipes
5
6
 *
6
7
 *  Authors:
7
8
 *
8
 
 *    Jay Pipes <joinfu@sun.com>
 
9
 *    Jay Pipes <jaypipes@gmail.com>
9
10
 *
10
11
 *  This program is free software; you can redistribute it and/or modify
11
12
 *  it under the terms of the GNU General Public License as published by
33
34
 */
34
35
 
35
36
#include "drizzled/plugin/plugin.h"
 
37
#include "drizzled/plugin/replication.h"
36
38
#include "drizzled/atomics.h"
37
39
 
38
40
namespace drizzled
39
41
{
40
42
 
 
43
class Session;
 
44
 
41
45
namespace message { class Transaction; }
42
46
 
43
47
namespace plugin
74
78
   *
75
79
   * @param Transaction message to be replicated
76
80
   */
77
 
  virtual void apply(const message::Transaction &to_apply)= 0;
 
81
  virtual ReplicationReturnCode apply(Session &in_session,
 
82
                                      const message::Transaction &to_apply)= 0;
78
83
 
79
84
  static bool addPlugin(TransactionApplier *applier);
80
85
  static void removePlugin(TransactionApplier *applier);