Drizzled Public API Documentation

trx_sys_struct Struct Reference

#include <trx0sys.h>

Public Member Functions

 UT_LIST_BASE_NODE_T (trx_t) trx_list
 
 UT_LIST_BASE_NODE_T (trx_t) mysql_trx_list
 
 UT_LIST_BASE_NODE_T (trx_rseg_t) rseg_list
 
 UT_LIST_BASE_NODE_T (read_view_t) view_list
 

Public Attributes

trx_id_t max_trx_id
 
trx_rseg_tlatest_rseg
 
trx_rseg_trseg_array [TRX_SYS_N_RSEGS]
 
ulint rseg_history_len
 

Detailed Description

The transaction system central memory data structure; protected by the

kernel mutex

Definition at line 578 of file trx0sys.h.

Member Function Documentation

trx_sys_struct::UT_LIST_BASE_NODE_T ( trx_t  )
 List of active and committed in

memory transactions, sorted on trx id, biggest first

trx_sys_struct::UT_LIST_BASE_NODE_T ( trx_t  )
 List of transactions created

for MySQL

trx_sys_struct::UT_LIST_BASE_NODE_T ( trx_rseg_t  )
 List of rollback segment

objects

trx_sys_struct::UT_LIST_BASE_NODE_T ( read_view_t  )
 List of read views sorted

on trx no, biggest first

Member Data Documentation

trx_rseg_t* trx_sys_struct::latest_rseg
                   Latest rollback segment in the

round-robin assignment of rollback segments to transactions

Definition at line 593 of file trx0sys.h.

Referenced by trx_sys_init_at_db_start().

trx_id_t trx_sys_struct::max_trx_id
               The smallest number not yet

assigned as a transaction id or transaction number

Definition at line 579 of file trx0sys.h.

Referenced by lock_check_trx_id_sanity(), lock_print_info_summary(), lock_release_off_kernel(), read_cursor_view_create_for_mysql(), read_view_open_now(), and trx_sys_init_at_db_start().

trx_rseg_t* trx_sys_struct::rseg_array[TRX_SYS_N_RSEGS]
 Pointer array to rollback

segments; NULL if slot not in use

Definition at line 596 of file trx0sys.h.

Referenced by trx_rseg_get_on_id().

ulint trx_sys_struct::rseg_history_len
                  Length of the TRX_RSEG_HISTORY

list (update undo logs for committed transactions), protected by rseg->mutex

Definition at line 599 of file trx0sys.h.

Referenced by lock_print_info_summary(), srv_purge_thread(), trx_purge(), trx_purge_add_update_undo_to_history(), and trx_rseg_list_and_array_init().


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