MySQL 9.1.0
Source Code Documentation
|
The transaction. More...
#include "read0read.h"
Functions | |
static bool | trx_state_eq (const trx_t *trx, trx_state_t state) |
static const dict_index_t * | trx_get_error_index (const trx_t *trx) |
Retrieves the index causing error from a trx. More... | |
static const char * | trx_get_que_state_str (const trx_t *trx) |
Retrieves transaction's que state in a human readable string. More... | |
static trx_id_t | trx_get_id_for_print (const trx_t *trx) |
Retreieves the transaction ID. More... | |
static enum trx_dict_op_t | trx_get_dict_operation (const trx_t *trx) |
Determine if a transaction is a dictionary operation. More... | |
static void | trx_set_dict_operation (trx_t *trx, enum trx_dict_op_t op) |
Flag a transaction a dictionary operation. More... | |
static bool | trx_is_redo_rseg_updated (const trx_t *trx) |
Check if redo rseg is modified for insert/update. More... | |
static bool | trx_is_temp_rseg_updated (const trx_t *trx) |
Check if noredo rseg is modified for insert/update. More... | |
static bool | trx_is_rseg_updated (const trx_t *trx) |
Check if redo/noredo rseg is modified for insert/update. More... | |
static bool | trx_is_rseg_assigned (const trx_t *trx) |
Check if redo/nonredo rseg is valid. More... | |
static void | trx_reference (trx_t *trx) |
static void | trx_release_reference (trx_t *trx) |
Release the transaction. More... | |
static ReadView * | trx_get_read_view (trx_t *trx) |
static const ReadView * | trx_get_read_view (const trx_t *trx) |
static bool | trx_is_high_priority (const trx_t *trx) |
static const trx_t * | trx_arbitrate (const trx_t *requestor, const trx_t *holder) |
const char * | trx_state_string (trx_state_t state) |
Human readable transaction state, for diagnostic purposes. More... | |
The transaction.
Created 3/26/1996 Heikki Tuuri
[in] | requestor | Transaction requesting the lock |
[in] | holder | Transaction holding the lock |
|
inlinestatic |
Determine if a transaction is a dictionary operation.
trx | in: transaction |
|
inlinestatic |
Retrieves the index causing error from a trx.
[in] | trx | trx object |
Retreieves the transaction ID.
In a given point in time it is guaranteed that IDs of the running transactions are unique. The values returned by this function for readonly transactions may be reused, so a subsequent RO transaction may get the same ID as a RO transaction that existed in the past. The values returned by this function should be used for printing purposes only.
[in] | trx | transaction whose id to retrieve |
|
inlinestatic |
Retrieves transaction's que state in a human readable string.
The string should not be free()'d or modified.
trx | in: transaction |
trx | Get the active view for this transaction, if one exists |
trx | Get the active view for this transaction, if one exists |
|
inlinestatic |
[in] | trx | Transaction to check |
|
inlinestatic |
Check if redo rseg is modified for insert/update.
trx | in: transaction |
|
inlinestatic |
Check if redo/nonredo rseg is valid.
trx | in: transaction |
|
inlinestatic |
Check if redo/noredo rseg is modified for insert/update.
trx | in: transaction |
|
inlinestatic |
Check if noredo rseg is modified for insert/update.
trx | in: transaction |
|
inlinestatic |
|
inlinestatic |
Release the transaction.
Decrease the reference count.
trx | Transaction that is being released |
|
inlinestatic |
Flag a transaction a dictionary operation.
trx | in/out: transaction |
op | in: operation, not TRX_DICT_OP_NONE |
|
inlinestatic |
|
inline |
Human readable transaction state, for diagnostic purposes.