For managing the life-cycle of the trx_t instance that we get from the pool.
More...
|
static void | init (trx_t *trx) |
| Initializes a transaction object. More...
|
|
static void | destroy (trx_t *trx) |
| Release resources held by the transaction object. More...
|
|
static bool | debug (const trx_t *trx) |
| Enforce any invariants here, this is called before the transaction is added to the pool. More...
|
|
For managing the life-cycle of the trx_t instance that we get from the pool.
◆ debug()
static bool TrxFactory::debug |
( |
const trx_t * |
trx | ) |
|
|
inlinestatic |
Enforce any invariants here, this is called before the transaction is added to the pool.
- Returns
- true if all OK
◆ destroy()
static void TrxFactory::destroy |
( |
trx_t * |
trx | ) |
|
|
inlinestatic |
Release resources held by the transaction object.
- Parameters
-
trx | the transaction for which to release resources |
◆ init()
static void TrxFactory::init |
( |
trx_t * |
trx | ) |
|
|
inlinestatic |
Initializes a transaction object.
It must be explicitly started with trx_start_if_not_started() before using it. The default isolation level is TRX_ISO_REPEATABLE_READ.
- Parameters
-
trx | Transaction instance to initialise |
The documentation for this struct was generated from the following file: