Drizzled Public API Documentation

replication_log.cc
00001 /* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2010 Brian Aker
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #include <config.h>
00022 
00023 #include <plugin/innobase/handler/replication_log.h>
00024 
00025 #include <vector>
00026 
00027 #include <drizzled/message/transaction.pb.h>
00028 #include <drizzled/util/functors.h>
00029 #include <drizzled/session.h>
00030 
00031 /* Include necessary InnoDB headers */
00032 #include "univ.i"
00033 #include "btr0sea.h"
00034 #include "os0file.h"
00035 #include "os0thread.h"
00036 #include "srv0start.h"
00037 #include "srv0srv.h"
00038 #include "trx0roll.h"
00039 #include "trx0trx.h"
00040 #include "trx0sys.h"
00041 #include "mtr0mtr.h"
00042 #include "row0ins.h"
00043 #include "row0mysql.h"
00044 #include "row0sel.h"
00045 #include "row0upd.h"
00046 #include "log0log.h"
00047 #include "lock0lock.h"
00048 #include "dict0crea.h"
00049 #include "create_replication.h"
00050 #include "btr0cur.h"
00051 #include "btr0btr.h"
00052 #include "fsp0fsp.h"
00053 #include "sync0sync.h"
00054 #include "fil0fil.h"
00055 #include "trx0xa.h"
00056 #include "row0merge.h"
00057 #include "thr0loc.h"
00058 #include "dict0boot.h"
00059 #include "ha_prototypes.h"
00060 #include "ut0mem.h"
00061 #include "ibuf0ibuf.h"
00062 
00063 using namespace std;
00064 using namespace drizzled;
00065 
00066 ReplicationLog::ReplicationLog() :
00067   drizzled::plugin::TransactionApplier("INNOBASE_REPLICATION_LOGGER")
00068 {
00069 }
00070 
00071 void ReplicationLog::setup(ReplicationLog *logger)
00072 {
00073   ReplicationServices &replication_services= ReplicationServices::singleton();
00074   replication_services.attachApplier(logger, "default");
00075 }