#include <xa_resource_manager.h>
|
typedef ::boost::unordered_set< my_xid > | commit_list_set |
|
|
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) |
|
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.
int drizzled::plugin::XaResourceManager::commitOrRollbackXID |
( |
XID * |
xid, |
|
|
bool |
commit |
|
) |
| |
|
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.
virtual int drizzled::plugin::XaResourceManager::doXaCommit |
( |
Session * |
session, |
|
|
bool |
normal_transaction |
|
) |
| |
|
privatepure virtual |
Does the COMMIT stage of the two-phase commit.
virtual int drizzled::plugin::XaResourceManager::doXaCommitXid |
( |
XID * |
xid | ) |
|
|
privatepure virtual |
Commits a transaction identified by a XID.
virtual int drizzled::plugin::XaResourceManager::doXaPrepare |
( |
Session * |
session, |
|
|
bool |
normal_transaction |
|
) |
| |
|
privatepure virtual |
Does the PREPARE stage of the two-phase commit.
virtual int drizzled::plugin::XaResourceManager::doXaRecover |
( |
XID * |
append_to, |
|
|
size_t |
len |
|
) |
| |
|
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.
- Parameters
-
[out] | Reference | to a vector of XIDs to add to |
- Return values
-
Returns | the number of transactions left to recover for this engine. |
virtual int drizzled::plugin::XaResourceManager::doXaRollback |
( |
Session * |
session, |
|
|
bool |
normal_transaction |
|
) |
| |
|
privatepure virtual |
Does the ROLLBACK stage of the two-phase commit.
virtual int drizzled::plugin::XaResourceManager::doXaRollbackXid |
( |
XID * |
xid | ) |
|
|
privatepure virtual |
Rolls back a transaction identified by a XID.
The documentation for this class was generated from the following files: