|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <xa_resource_manager.h>
Public Types | |
| typedef ::std::unordered_set< my_xid > | commit_list_set |
Public Member Functions | |
| int | xaPrepare (Session *session, bool normal_transaction) |
| int | xaCommit (Session *session, bool normal_transaction) |
| int | xaRollback (Session *session, bool normal_transaction) |
| int | xaCommitXid (XID *xid) |
| int | xaRollbackXid (XID *xid) |
| int | xaRecover (XID *append_to, size_t len) |
| uint64_t | getCurrentTransactionId (Session *session) |
| uint64_t | getNewTransactionId (Session *session) |
Static Public Member Functions | |
| static int | commitOrRollbackXID (XID *xid, bool commit) |
| static int | recoverAllXids () |
| static int | recoverAllXids (const commit_list_set &commit_list) |
| static bool | addPlugin (plugin::XaResourceManager &manager) |
| static void | removePlugin (plugin::XaResourceManager &manager) |
Private Member Functions | |
| virtual int | doXaCommit (Session *session, bool normal_transaction)=0 |
| virtual int | doXaRollback (Session *session, bool normal_transaction)=0 |
| virtual int | doXaPrepare (Session *session, bool normal_transaction)=0 |
| virtual int | doXaRollbackXid (XID *xid)=0 |
| virtual int | doXaCommitXid (XID *xid)=0 |
| virtual int | doXaRecover (XID *append_to, size_t len)=0 |
| virtual uint64_t | doGetCurrentTransactionId (Session *session)=0 |
| virtual uint64_t | doGetNewTransactionId (Session *session)=0 |
An abstract interface class which exposes the participation of implementing classes in distributed transactions in the XA protocol.
Definition at line 33 of file xa_resource_manager.h.
| typedef ::std::unordered_set<my_xid> drizzled::plugin::XaResourceManager::commit_list_set |
Definition at line 78 of file xa_resource_manager.h.
|
inlinevirtual |
Definition at line 36 of file xa_resource_manager.h.
|
static |
Definition at line 202 of file xa_resource_manager.cc.
|
static |
The below static class methods wrap the interaction of the vector of registered XA storage engines.
Definition at line 45 of file xa_resource_manager.cc.
|
privatepure virtual |
Does the COMMIT stage of the two-phase commit.
|
privatepure virtual |
Commits a transaction identified by a XID.
|
privatepure virtual |
Does the PREPARE stage of the two-phase commit.
|
privatepure virtual |
Notifies the transaction manager of any transactions which had been marked prepared but not committed at crash time or that have been heurtistically completed by the storage engine.
| [out] | Reference | to a vector of XIDs to add to |
| Returns | the number of transactions left to recover for this engine. |
|
privatepure virtual |
Does the ROLLBACK stage of the two-phase commit.
|
privatepure virtual |
Rolls back a transaction identified by a XID.
|
inline |
Definition at line 68 of file xa_resource_manager.h.
|
inline |
Definition at line 73 of file xa_resource_manager.h.
|
static |
Definition at line 138 of file xa_resource_manager.cc.
|
static |
Definition at line 144 of file xa_resource_manager.cc.
|
static |
Definition at line 208 of file xa_resource_manager.cc.
|
inline |
Definition at line 43 of file xa_resource_manager.h.
|
inline |
Definition at line 53 of file xa_resource_manager.h.
|
inline |
Definition at line 38 of file xa_resource_manager.h.
|
inline |
Definition at line 63 of file xa_resource_manager.h.
|
inline |
Definition at line 48 of file xa_resource_manager.h.
|
inline |
Definition at line 58 of file xa_resource_manager.h.