MySQL 8.0.40
Source Code Documentation
|
Track if a transaction is executing inside InnoDB code. More...
#include <trx0trx.h>
Public Member Functions | |
TrxInInnoDB (trx_t *trx, bool disable=false) | |
~TrxInInnoDB () | |
Destructor. More... | |
bool | is_aborted () const |
bool | is_rollback_disabled () const |
Static Public Member Functions | |
static bool | is_aborted (const trx_t *trx) |
static void | begin_stmt (trx_t *trx) |
Start statement requested for transaction. More... | |
static void | end_stmt (trx_t *trx) |
Note an end statement for transaction. More... | |
static bool | is_async_rollback (const trx_t *trx) |
Static Private Member Functions | |
static void | enter (trx_t *trx, bool disable) |
Note that we have crossed into InnoDB code. More... | |
static void | exit (trx_t *trx) |
Note that we are exiting InnoDB code. More... | |
static bool | is_forced_rollback (const trx_t *trx) |
static void | wait (const trx_t *trx) |
Wait for the asynchronous rollback to complete, if it is in progress. More... | |
static bool | is_started (const trx_t *trx) |
Private Attributes | |
trx_t * | m_trx |
Transaction instance crossing the handler boundary from the Server. More... | |
Track if a transaction is executing inside InnoDB code.
It acts like a gate between the Server and InnoDB.
|
inline |
[in,out] | trx | Transaction entering InnoDB via the handler |
[in] | disable | true if called from COMMIT/ROLLBACK method |
|
inline |
Destructor.
|
inlinestatic |
Start statement requested for transaction.
[in,out] | trx | Transaction at the start of a SQL statement |
|
inlinestatic |
Note an end statement for transaction.
[in,out] | trx | Transaction at end of a SQL statement |
|
inlinestaticprivate |
Note that we have crossed into InnoDB code.
[in] | trx | transaction |
[in] | disable | true if called from COMMIT/ROLLBACK method |
|
inlinestaticprivate |
Note that we are exiting InnoDB code.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticprivate |
|
inline |
|
inlinestaticprivate |
|
inlinestaticprivate |
Wait for the asynchronous rollback to complete, if it is in progress.
|
private |
Transaction instance crossing the handler boundary from the Server.