InnoDB Plugin
1.0
|
Functions | |
UNIV_INLINE ibool | trx_state_eq (const trx_t *trx, trx_state_t state) |
UNIV_INLINE const dict_index_t * | trx_get_error_info (const trx_t *trx) |
UNIV_INLINE const char * | trx_get_que_state_str (const trx_t *trx) |
UNIV_INLINE enum trx_dict_op_t | trx_get_dict_operation (const trx_t *trx) |
UNIV_INLINE void | trx_set_dict_operation (trx_t *trx, enum trx_dict_op_t op) |
UNIV_INLINE void | trx_search_latch_release_if_reserved (trx_t *trx) |
The transaction
Created 3/26/1996 Heikki Tuuri
UNIV_INLINE enum trx_dict_op_t trx_get_dict_operation | ( | const trx_t * | trx | ) |
Determine if a transaction is a dictionary operation.
trx | in: transaction |
UNIV_INLINE const dict_index_t* trx_get_error_info | ( | const trx_t * | trx | ) |
Retrieves the error_info field from a trx.
trx | in: trx object |
UNIV_INLINE const char* trx_get_que_state_str | ( | const trx_t * | trx | ) |
Retrieves transaction's que state in a human readable string. The string should not be free()'d or modified.
trx | in: transaction |
UNIV_INLINE void trx_search_latch_release_if_reserved | ( | trx_t * | trx | ) |
Releases the search latch if trx has reserved it.
trx | in: transaction |
UNIV_INLINE void trx_set_dict_operation | ( | trx_t * | trx, |
enum trx_dict_op_t | op | ||
) |
Flag a transaction a dictionary operation.
trx | in/out: transaction |
op | in: operation, not TRX_DICT_OP_NONE |
UNIV_INLINE ibool trx_state_eq | ( | const trx_t * | trx, |
trx_state_t | state | ||
) |
Determines if a transaction is in the given state. The caller must hold trx_sys->mutex, or it must be the thread that is serving a running transaction. A running transaction must be in trx_sys->ro_trx_list or trx_sys->rw_trx_list unless it is a non-locking autocommit read only transaction, which is only in trx_sys->mysql_trx_list.
trx | in: transaction |
state | in: state; if state != TRX_STATE_NOT_STARTED asserts that trx->state != TRX_STATE_NOT_STARTED |