MySQL 8.3.0
Source Code Documentation
i_s_trx_row_t Struct Reference

This structure represents INFORMATION_SCHEMA.innodb_trx row. More...

#include <trx0i_s.h>

Public Attributes

trx_id_t trx_id
 transaction identifier More...
 
const char * trx_state
 transaction state from trx_get_que_state_str() More...
 
std::chrono::system_clock::time_point trx_started
 trx_t::start_time More...
 
const i_s_locks_row_trequested_lock_row
 pointer to a row in innodb_locks if trx is waiting, or NULL More...
 
std::chrono::system_clock::time_point trx_wait_started
 The value of trx->lock.wait_started. More...
 
uintmax_t trx_weight
 The value of TRX_WEIGHT(trx) More...
 
std::pair< bool, trx_schedule_weight_ttrx_schedule_weight
 If first is true then second is the value of the trx->lock.schedule_weight, otherwise the second should be ignored and displayed as NULL to the end user. More...
 
ulint trx_mysql_thread_id
 thd_get_thread_id() More...
 
const char * trx_query
 MySQL statement being executed in the transaction. More...
 
const CHARSET_INFOtrx_query_cs
 the charset of trx_query More...
 
const char * trx_operation_state
 trx_t::op_info More...
 
ulint trx_tables_in_use
 n_mysql_tables_in_use in trx_t More...
 
ulint trx_tables_locked
 mysql_n_tables_locked in trx_t More...
 
ulint trx_lock_structs
 list len of trx_locks in trx_t More...
 
ulint trx_lock_memory_bytes
 mem_heap_get_size( trx->lock_heap) More...
 
ulint trx_rows_locked
 lock_number_of_rows_locked() More...
 
uintmax_t trx_rows_modified
 trx_t::undo_no More...
 
ulint trx_concurrency_tickets
 n_tickets_to_enter_innodb in trx_t More...
 
const char * trx_isolation_level
 isolation_level in trx_t More...
 
bool trx_unique_checks
 check_unique_secondary in trx_t More...
 
bool trx_foreign_key_checks
 check_foreigns in trx_t More...
 
const char * trx_foreign_key_error
 detailed_error in trx_t More...
 
bool trx_has_search_latch
 has_search_latch in trx_t More...
 
ulint trx_is_read_only
 trx_t::read_only More...
 
ulint trx_is_autocommit_non_locking
 trx_is_autocommit_non_locking(trx) More...
 

Detailed Description

This structure represents INFORMATION_SCHEMA.innodb_trx row.

Member Data Documentation

◆ requested_lock_row

const i_s_locks_row_t* i_s_trx_row_t::requested_lock_row

pointer to a row in innodb_locks if trx is waiting, or NULL

◆ trx_concurrency_tickets

ulint i_s_trx_row_t::trx_concurrency_tickets

n_tickets_to_enter_innodb in trx_t

◆ trx_foreign_key_checks

bool i_s_trx_row_t::trx_foreign_key_checks

check_foreigns in trx_t

◆ trx_foreign_key_error

const char* i_s_trx_row_t::trx_foreign_key_error

detailed_error in trx_t

◆ trx_has_search_latch

bool i_s_trx_row_t::trx_has_search_latch

has_search_latch in trx_t

◆ trx_id

trx_id_t i_s_trx_row_t::trx_id

transaction identifier

◆ trx_is_autocommit_non_locking

ulint i_s_trx_row_t::trx_is_autocommit_non_locking

trx_is_autocommit_non_locking(trx)

◆ trx_is_read_only

ulint i_s_trx_row_t::trx_is_read_only

trx_t::read_only

◆ trx_isolation_level

const char* i_s_trx_row_t::trx_isolation_level

isolation_level in trx_t

◆ trx_lock_memory_bytes

ulint i_s_trx_row_t::trx_lock_memory_bytes

mem_heap_get_size( trx->lock_heap)

◆ trx_lock_structs

ulint i_s_trx_row_t::trx_lock_structs

list len of trx_locks in trx_t

◆ trx_mysql_thread_id

ulint i_s_trx_row_t::trx_mysql_thread_id

thd_get_thread_id()

◆ trx_operation_state

const char* i_s_trx_row_t::trx_operation_state

trx_t::op_info

◆ trx_query

const char* i_s_trx_row_t::trx_query

MySQL statement being executed in the transaction.

◆ trx_query_cs

const CHARSET_INFO* i_s_trx_row_t::trx_query_cs

the charset of trx_query

◆ trx_rows_locked

ulint i_s_trx_row_t::trx_rows_locked

lock_number_of_rows_locked()

◆ trx_rows_modified

uintmax_t i_s_trx_row_t::trx_rows_modified

trx_t::undo_no

◆ trx_schedule_weight

std::pair<bool, trx_schedule_weight_t> i_s_trx_row_t::trx_schedule_weight

If first is true then second is the value of the trx->lock.schedule_weight, otherwise the second should be ignored and displayed as NULL to the end user.

(This could be std::optional once we move to C++17)

◆ trx_started

std::chrono::system_clock::time_point i_s_trx_row_t::trx_started

trx_t::start_time

◆ trx_state

const char* i_s_trx_row_t::trx_state

transaction state from trx_get_que_state_str()

◆ trx_tables_in_use

ulint i_s_trx_row_t::trx_tables_in_use

n_mysql_tables_in_use in trx_t

◆ trx_tables_locked

ulint i_s_trx_row_t::trx_tables_locked

mysql_n_tables_locked in trx_t

◆ trx_unique_checks

bool i_s_trx_row_t::trx_unique_checks

check_unique_secondary in trx_t

◆ trx_wait_started

std::chrono::system_clock::time_point i_s_trx_row_t::trx_wait_started

The value of trx->lock.wait_started.

◆ trx_weight

uintmax_t i_s_trx_row_t::trx_weight

The value of TRX_WEIGHT(trx)


The documentation for this struct was generated from the following file: