drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::session::Transactions Class Reference

#include <transactions.h>

Collaboration diagram for drizzled::session::Transactions:
[legend]

Public Member Functions

void cleanup ()

Public Attributes

std::deque< NamedSavepoint > savepoints
TransactionContext all
TransactionContext stmt
XID_STATE xid_state

Detailed Description

Structure used to manage "statement transactions" and "normal transactions". In autocommit mode, the normal transaction is equivalent to the statement transaction.

Storage engines will be registered here when they participate in a transaction. No engine is registered more than once.

Definition at line 38 of file transactions.h.

Member Function Documentation

◆ cleanup()

void drizzled::session::Transactions::cleanup ( )
inline

Definition at line 66 of file transactions.h.

Member Data Documentation

◆ all

TransactionContext drizzled::session::Transactions::all

The normal transaction (since BEGIN WORK).

Contains a list of all engines that have participated in any of the statement transactions started within the context of the normal transaction.

Note
In autocommit mode, this is empty.

Definition at line 52 of file transactions.h.

◆ savepoints

std::deque<NamedSavepoint> drizzled::session::Transactions::savepoints

Definition at line 41 of file transactions.h.

◆ stmt

TransactionContext drizzled::session::Transactions::stmt

The statment transaction.

Contains a list of all engines participating in the given statement.

Note
In autocommit mode, this will be used to commit/rollback the normal transaction.

Definition at line 62 of file transactions.h.

◆ xid_state

XID_STATE drizzled::session::Transactions::xid_state

Definition at line 64 of file transactions.h.


The documentation for this class was generated from the following file: