~drizzle-trunk/drizzle/development

1802.17.1 by Brian Aker
First pass over replicating to the guts of Innodb.
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2010 Brian Aker
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
21
#include <config.h>
1802.17.1 by Brian Aker
First pass over replicating to the guts of Innodb.
22
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
23
#include <plugin/innobase/handler/replication_log.h>
1802.17.1 by Brian Aker
First pass over replicating to the guts of Innodb.
24
25
#include <vector>
26
27
#include <drizzled/message/transaction.pb.h>
28
#include <drizzled/util/functors.h>
29
#include <drizzled/session.h>
30
31
/* Include necessary InnoDB headers */
32
#include "univ.i"
33
#include "btr0sea.h"
34
#include "os0file.h"
35
#include "os0thread.h"
36
#include "srv0start.h"
37
#include "srv0srv.h"
38
#include "trx0roll.h"
39
#include "trx0trx.h"
40
#include "trx0sys.h"
41
#include "mtr0mtr.h"
42
#include "row0ins.h"
43
#include "row0mysql.h"
44
#include "row0sel.h"
45
#include "row0upd.h"
46
#include "log0log.h"
47
#include "lock0lock.h"
48
#include "dict0crea.h"
49
#include "create_replication.h"
50
#include "btr0cur.h"
51
#include "btr0btr.h"
52
#include "fsp0fsp.h"
53
#include "sync0sync.h"
54
#include "fil0fil.h"
55
#include "trx0xa.h"
56
#include "row0merge.h"
57
#include "thr0loc.h"
58
#include "dict0boot.h"
59
#include "ha_prototypes.h"
60
#include "ut0mem.h"
61
#include "ibuf0ibuf.h"
62
63
using namespace std;
64
using namespace drizzled;
65
66
ReplicationLog::ReplicationLog() :
67
  drizzled::plugin::TransactionApplier("INNOBASE_REPLICATION_LOGGER")
68
{
69
}
70
71
void ReplicationLog::setup(ReplicationLog *logger)
72
{
2318.6.73 by Olaf van der Spek
Refactor
73
  ReplicationServices::attachApplier(logger, "default");
1802.17.1 by Brian Aker
First pass over replicating to the guts of Innodb.
74
}