drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
trx_struct Struct Reference
Collaboration diagram for trx_struct:
[legend]

Public Member Functions

drizzled::Session * session ()
drizzled::Session * session () const

Public Attributes

ulint magic_n
const char * op_info
ulint conc_state
ulint isolation_level
ulint check_foreigns
unsigned check_unique_secondary
unsigned support_xa
unsigned flush_log_later
unsigned must_flush_log_later
ulint duplicates
unsigned has_search_latch
ulint deadlock_mark
trx_dict_op_t dict_operation
ulint declared_to_be_inside_innodb
ulint dict_operation_lock_mode
ulint is_purge
ulint is_recovered
ulint que_state
ulint handling_signals
time_t start_time
trx_id_t id
XID xid
trx_id_t no
ib_uint64_t commit_lsn
table_id_t table_id
drizzled::Session * mysql_thd
const char * mysql_log_file_name
ib_int64_t mysql_log_offset
os_thread_id_t mysql_thread_id
ulint mysql_process_no
ulint mysql_n_tables_locked
ulint search_latch_timeout
ulint n_tickets_to_enter_innodb
 trx_list
 mysql_trx_list
ulint error_state
const dict_index_t * error_info
ulint error_key_num
sess_t * sess
que_t * graph
ulint n_active_thrs
que_t * graph_before_signal_handling
trx_sig_t sig
 signals
 reply_signals
lock_t * wait_lock
ibool was_chosen_as_deadlock_victim
time_t wait_started
 wait_thrs
mem_heap_t * lock_heap
 trx_locks
mem_heap_t * global_read_view_heap
read_view_t * global_read_view
read_view_t * read_view
 trx_savepoints
mutex_t undo_mutex
undo_no_t undo_no
trx_savept_t last_sql_stat_start
trx_rseg_t * rseg
trx_undo_t * insert_undo
trx_undo_t * update_undo
undo_no_t roll_limit
ulint pages_undone
trx_undo_arr_t * undo_no_arr
ulint n_autoinc_rows
ib_vector_t * autoinc_locks
char detailed_error [256]
ibool log_commit_id

Detailed Description

Definition at line 473 of file trx0trx.h.

Member Function Documentation

◆ session() [1/2]

drizzled::Session * trx_struct::session ( )
inline

Definition at line 722 of file trx0trx.h.

◆ session() [2/2]

drizzled::Session * trx_struct::session ( ) const
inline

Definition at line 726 of file trx0trx.h.

Member Data Documentation

◆ autoinc_locks

ib_vector_t* trx_struct::autoinc_locks

Definition at line 711 of file trx0trx.h.

◆ check_foreigns

ulint trx_struct::check_foreigns

Definition at line 485 of file trx0trx.h.

◆ check_unique_secondary

unsigned trx_struct::check_unique_secondary

Definition at line 489 of file trx0trx.h.

◆ commit_lsn

ib_uint64_t trx_struct::commit_lsn

lsn at the time of the commit

Definition at line 555 of file trx0trx.h.

◆ conc_state

ulint trx_struct::conc_state

state of the trx from the point of view of concurrency control: TRX_ACTIVE, TRX_COMMITTED_IN_MEMORY, ...

Definition at line 480 of file trx0trx.h.

◆ deadlock_mark

ulint trx_struct::deadlock_mark

a mark field used in deadlock checking algorithm.

Definition at line 517 of file trx0trx.h.

◆ declared_to_be_inside_innodb

ulint trx_struct::declared_to_be_inside_innodb

Definition at line 522 of file trx0trx.h.

◆ detailed_error

char trx_struct::detailed_error[256]

detailed error message for last error, or empty.

Definition at line 717 of file trx0trx.h.

◆ dict_operation

trx_dict_op_t trx_struct::dict_operation
See also
enum trx_dict_op

Definition at line 519 of file trx0trx.h.

◆ dict_operation_lock_mode

ulint trx_struct::dict_operation_lock_mode

0, RW_S_LATCH, or RW_X_LATCH: the latch mode trx currently holds on dict_operation_lock

Definition at line 530 of file trx0trx.h.

◆ duplicates

ulint trx_struct::duplicates

TRX_DUP_IGNORE | TRX_DUP_REPLACE

Definition at line 513 of file trx0trx.h.

◆ error_info

const dict_index_t* trx_struct::error_info

if the error number indicates a duplicate key error, a pointer to the problematic index is stored here

Definition at line 606 of file trx0trx.h.

◆ error_key_num

ulint trx_struct::error_key_num

if the index creation fails to a duplicate key error, a mysql key number of that index is stored here

Definition at line 609 of file trx0trx.h.

◆ error_state

ulint trx_struct::error_state

0 if no error, otherwise error number; NOTE That ONLY the thread doing the transaction is allowed to set this field: this is NOT protected by the kernel mutex

Definition at line 601 of file trx0trx.h.

◆ flush_log_later

unsigned trx_struct::flush_log_later

Definition at line 501 of file trx0trx.h.

◆ global_read_view

read_view_t* trx_struct::global_read_view

Definition at line 661 of file trx0trx.h.

◆ global_read_view_heap

mem_heap_t* trx_struct::global_read_view_heap

Definition at line 658 of file trx0trx.h.

◆ graph

que_t* trx_struct::graph

query currently run in the session, or NULL if none; NOTE that the query belongs to the session, and it can survive over a transaction commit, if it is a stored procedure with a COMMIT WORK statement, for instance

Definition at line 613 of file trx0trx.h.

◆ graph_before_signal_handling

que_t* trx_struct::graph_before_signal_handling

Definition at line 620 of file trx0trx.h.

◆ handling_signals

ulint trx_struct::handling_signals

Definition at line 543 of file trx0trx.h.

◆ has_search_latch

unsigned trx_struct::has_search_latch

Definition at line 514 of file trx0trx.h.

◆ id

trx_id_t trx_struct::id

transaction id

Definition at line 548 of file trx0trx.h.

◆ insert_undo

trx_undo_t* trx_struct::insert_undo

pointer to the insert undo log, or NULL if no inserts performed yet

Definition at line 696 of file trx0trx.h.

◆ is_purge

ulint trx_struct::is_purge

0=user transaction, 1=purge

Definition at line 537 of file trx0trx.h.

◆ is_recovered

ulint trx_struct::is_recovered

0=normal transaction, 1=recovered, must be rolled back

Definition at line 538 of file trx0trx.h.

◆ isolation_level

ulint trx_struct::isolation_level

Definition at line 484 of file trx0trx.h.

◆ last_sql_stat_start

trx_savept_t trx_struct::last_sql_stat_start

Definition at line 688 of file trx0trx.h.

◆ lock_heap

mem_heap_t* trx_struct::lock_heap

memory heap for the locks of the transaction

Definition at line 653 of file trx0trx.h.

◆ log_commit_id

ibool trx_struct::log_commit_id

log the commit id to the sys file

Definition at line 720 of file trx0trx.h.

◆ magic_n

ulint trx_struct::magic_n

Definition at line 474 of file trx0trx.h.

◆ must_flush_log_later

unsigned trx_struct::must_flush_log_later

Definition at line 507 of file trx0trx.h.

◆ mysql_log_file_name

const char* trx_struct::mysql_log_file_name

Definition at line 561 of file trx0trx.h.

◆ mysql_log_offset

ib_int64_t trx_struct::mysql_log_offset

Definition at line 566 of file trx0trx.h.

◆ mysql_n_tables_locked

ulint trx_struct::mysql_n_tables_locked

Definition at line 574 of file trx0trx.h.

◆ mysql_process_no

ulint trx_struct::mysql_process_no

Definition at line 571 of file trx0trx.h.

◆ mysql_thd

drizzled::Session* trx_struct::mysql_thd

MySQL thread handle corresponding to this trx, or NULL

Definition at line 559 of file trx0trx.h.

◆ mysql_thread_id

os_thread_id_t trx_struct::mysql_thread_id

Definition at line 569 of file trx0trx.h.

◆ mysql_trx_list

trx_struct::mysql_trx_list

list of transactions created for MySQL

Definition at line 598 of file trx0trx.h.

◆ n_active_thrs

ulint trx_struct::n_active_thrs

number of active query threads

Definition at line 619 of file trx0trx.h.

◆ n_autoinc_rows

ulint trx_struct::n_autoinc_rows

no. of AUTO-INC rows required for an SQL statement. This is useful for multi-row INSERTs

Definition at line 708 of file trx0trx.h.

◆ n_tickets_to_enter_innodb

ulint trx_struct::n_tickets_to_enter_innodb

Definition at line 589 of file trx0trx.h.

◆ no

trx_id_t trx_struct::no

transaction serialization number == max trx id when the transaction is moved to COMMITTED_IN_MEMORY state

Definition at line 552 of file trx0trx.h.

◆ op_info

const char* trx_struct::op_info

English text describing the current operation, or an empty string

Definition at line 477 of file trx0trx.h.

◆ pages_undone

ulint trx_struct::pages_undone

number of undo log pages undone since the last undo log truncation

Definition at line 702 of file trx0trx.h.

◆ que_state

ulint trx_struct::que_state

valid when conc_state == TRX_ACTIVE: TRX_QUE_RUNNING, TRX_QUE_LOCK_WAIT, ...

Definition at line 540 of file trx0trx.h.

◆ read_view

read_view_t* trx_struct::read_view

consistent read view used in the transaction or NULL, this read view if defined can be normal read view associated to a transaction (i.e. same as global_read_view) or read view associated to a cursor

Definition at line 664 of file trx0trx.h.

◆ reply_signals

trx_struct::reply_signals

list of signals sent by the query threads of this trx for which a thread is waiting for a reply; if this trx is killed, the reply requests in the list must be canceled

Definition at line 631 of file trx0trx.h.

◆ roll_limit

undo_no_t trx_struct::roll_limit

least undo number to undo during a rollback

Definition at line 700 of file trx0trx.h.

◆ rseg

trx_rseg_t* trx_struct::rseg

rollback segment assigned to the transaction, or NULL if not assigned yet

Definition at line 693 of file trx0trx.h.

◆ search_latch_timeout

ulint trx_struct::search_latch_timeout

Definition at line 578 of file trx0trx.h.

◆ sess

sess_t* trx_struct::sess

session of the trx, NULL if none

Definition at line 612 of file trx0trx.h.

◆ sig

trx_sig_t trx_struct::sig

one signal object can be allocated in this space, avoiding mem_alloc

Definition at line 625 of file trx0trx.h.

◆ signals

trx_struct::signals

queue of processed or pending signals to the trx

Definition at line 628 of file trx0trx.h.

◆ start_time

time_t trx_struct::start_time

time the trx object was created or the state last time became TRX_ACTIVE

Definition at line 545 of file trx0trx.h.

◆ support_xa

unsigned trx_struct::support_xa

normally we do the XA two-phase commit steps, but by setting this to FALSE, one can save CPU time and about 150 bytes in the undo log size as then we skip XA steps

Definition at line 496 of file trx0trx.h.

◆ table_id

table_id_t trx_struct::table_id

Table to drop iff dict_operation is TRUE, or 0.

Definition at line 556 of file trx0trx.h.

◆ trx_list

trx_struct::trx_list

list of transactions

Definition at line 596 of file trx0trx.h.

◆ trx_locks

trx_struct::trx_locks

locks reserved by the transaction

Definition at line 656 of file trx0trx.h.

◆ trx_savepoints

trx_struct::trx_savepoints

savepoints set with SAVEPOINT ..., oldest first

Definition at line 672 of file trx0trx.h.

◆ undo_mutex

mutex_t trx_struct::undo_mutex

mutex protecting the fields in this section (down to undo_no_arr), EXCEPT last_sql_stat_start, which can be accessed only when we know that there cannot be any activity in the undo logs!

Definition at line 675 of file trx0trx.h.

◆ undo_no

undo_no_t trx_struct::undo_no

next undo log record number to assign; since the undo log is private for a transaction, this is a simple ascending sequence with no gaps; thus it represents the number of modified/inserted rows in a transaction

Definition at line 681 of file trx0trx.h.

◆ undo_no_arr

trx_undo_arr_t* trx_struct::undo_no_arr

array of undo numbers of undo log records which are currently processed by a rollback operation

Definition at line 704 of file trx0trx.h.

◆ update_undo

trx_undo_t* trx_struct::update_undo

pointer to the update undo log, or NULL if no update performed yet

Definition at line 698 of file trx0trx.h.

◆ wait_lock

lock_t* trx_struct::wait_lock

if trx execution state is TRX_QUE_LOCK_WAIT, this points to the lock request, otherwise this is NULL

Definition at line 637 of file trx0trx.h.

◆ wait_started

time_t trx_struct::wait_started

lock wait started at this time

Definition at line 647 of file trx0trx.h.

◆ wait_thrs

trx_struct::wait_thrs

query threads belonging to this trx that are in the QUE_THR_LOCK_WAIT state

Definition at line 649 of file trx0trx.h.

◆ was_chosen_as_deadlock_victim

ibool trx_struct::was_chosen_as_deadlock_victim

Definition at line 641 of file trx0trx.h.

◆ xid

XID trx_struct::xid

X/Open XA transaction identification to identify a transaction branch

Definition at line 549 of file trx0trx.h.


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