1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
5
* Copyright (c) 2010 Jay Pipes <jaypipes@gmail.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; version 2 of the License.
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.
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
23
#include "drizzled/my_hash.h"
24
#include "drizzled/cached_directory.h"
26
#include <drizzled/definitions.h>
27
#include <drizzled/session.h>
28
#include <drizzled/error.h>
29
#include <drizzled/gettext.h>
30
#include <drizzled/plugin/xa_storage_engine.h>
31
#include "drizzled/xid.h"
33
#include "drizzled/hash.h"
48
static vector<XaStorageEngine *> vector_of_xa_engines;
50
XaStorageEngine::XaStorageEngine(const string name_arg,
51
const bitset<HTON_BIT_SIZE> &flags_arg) :
52
TransactionalStorageEngine(name_arg, flags_arg)
55
XaStorageEngine::~XaStorageEngine()
58
bool XaStorageEngine::addPlugin(XaStorageEngine *engine)
60
vector_of_xa_engines.push_back(engine);
62
return TransactionalStorageEngine::addPlugin(engine) &&
63
XaResourceManager::addPlugin(engine);
66
void XaStorageEngine::removePlugin(XaStorageEngine *engine)
68
vector_of_xa_engines.clear();
69
TransactionalStorageEngine::removePlugin(engine);
70
XaResourceManager::removePlugin(engine);
73
} /* namespace plugin */
74
} /* namespace drizzled */