InnoDB Plugin  1.0
Functions
trx0trx.ic File Reference
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE ibool trx_state_eq (const trx_t *trx, trx_state_t state)
UNIV_INLINE const dict_index_ttrx_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)

Detailed Description

The transaction

Created 3/26/1996 Heikki Tuuri

Function Documentation

UNIV_INLINE enum trx_dict_op_t trx_get_dict_operation ( const trx_t trx)

Determine if a transaction is a dictionary operation.

Returns
dictionary operation mode
Parameters
trxin: transaction
UNIV_INLINE const dict_index_t* trx_get_error_info ( const trx_t trx)

Retrieves the error_info field from a trx.

Returns
the error info
Parameters
trxin: 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.

Returns
string in the data segment
Parameters
trxin: transaction
UNIV_INLINE void trx_search_latch_release_if_reserved ( trx_t trx)

Releases the search latch if trx has reserved it.

Parameters
trxin: transaction
UNIV_INLINE void trx_set_dict_operation ( trx_t trx,
enum trx_dict_op_t  op 
)

Flag a transaction a dictionary operation.

Parameters
trxin/out: transaction
opin: 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.

Returns
TRUE if trx->state == state
Parameters
trxin: transaction
statein: state; if state != TRX_STATE_NOT_STARTED asserts that trx->state != TRX_STATE_NOT_STARTED