#include <trx0undo.h>
Public Member Functions | |
UT_LIST_NODE_T (trx_undo_t) undo_list | |
Public Attributes | |
ulint | id |
ulint | type |
ulint | state |
ibool | del_marks |
trx_id_t | trx_id |
XID | xid |
ibool | dict_operation |
table_id_t | table_id |
trx_rseg_t * | rseg |
ulint | space |
ulint | zip_size |
ulint | hdr_page_no |
ulint | hdr_offset |
ulint | last_page_no |
ulint | size |
ulint | empty |
ulint | top_page_no |
ulint | top_offset |
undo_no_t | top_undo_no |
buf_block_t * | guess_block |
Transaction undo log memory object; this is protected by the undo_mutex in the corresponding transaction object
Definition at line 364 of file trx0undo.h.
trx_undo_struct::UT_LIST_NODE_T | ( | trx_undo_t | ) |
undo log objects in the rollback segment are chained into lists
ibool trx_undo_struct::del_marks |
relevant only in an update undo log: this is TRUE if the transaction may have delete marked records, because of a delete of a row or an update of an indexed field; purge is then necessary; also TRUE if the transaction has updated an externally stored field
Definition at line 372 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history().
ibool trx_undo_struct::dict_operation |
TRUE if a dict operation trx
Definition at line 384 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start().
ulint trx_undo_struct::empty |
TRUE if the stack of undo log records is currently empty
Definition at line 402 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start(), trx_roll_pop_top_rec_of_trx(), and trx_undo_report_row_operation().
buf_block_t* trx_undo_struct::guess_block |
guess for the buffer block where the top page might reside
Definition at line 412 of file trx0undo.h.
Referenced by trx_undo_report_row_operation().
ulint trx_undo_struct::hdr_offset |
header offset of the undo log on the page
Definition at line 395 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), and trx_undo_truncate_end().
ulint trx_undo_struct::hdr_page_no |
page number of the header page in the undo log
Definition at line 393 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), trx_undo_add_page(), trx_undo_set_state_at_finish(), trx_undo_set_state_at_prepare(), and trx_undo_truncate_end().
ulint trx_undo_struct::id |
undo log slot number within the rollback segment
Definition at line 366 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), trx_undo_mem_free(), trx_undo_set_state_at_finish(), and trx_undo_set_state_at_prepare().
ulint trx_undo_struct::last_page_no |
page number of the last page in the undo log; this may differ from top_page_no during a rollback
Definition at line 397 of file trx0undo.h.
Referenced by trx_undo_add_page(), trx_undo_report_row_operation(), and trx_undo_truncate_end().
trx_rseg_t* trx_undo_struct::rseg |
rseg where the undo log belongs
Definition at line 387 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), and trx_roll_pop_top_rec_of_trx().
ulint trx_undo_struct::size |
current size in pages
Definition at line 400 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), trx_undo_add_page(), trx_undo_insert_cleanup(), trx_undo_lists_init(), and trx_undo_set_state_at_finish().
ulint trx_undo_struct::space |
space id where the undo log placed
Definition at line 389 of file trx0undo.h.
Referenced by trx_undo_add_page(), trx_undo_report_row_operation(), trx_undo_set_state_at_finish(), trx_undo_set_state_at_prepare(), and trx_undo_truncate_end().
ulint trx_undo_struct::state |
state of the corresponding undo log segment
Definition at line 370 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start(), trx_purge_add_update_undo_to_history(), trx_undo_insert_cleanup(), trx_undo_set_state_at_finish(), trx_undo_set_state_at_prepare(), and trx_undo_update_cleanup().
table_id_t trx_undo_struct::table_id |
if a dict operation, then the table id
Definition at line 385 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start().
ulint trx_undo_struct::top_offset |
offset of the latest undo record, i.e., the topmost element in the undo log if we think of it as a stack
Definition at line 408 of file trx0undo.h.
Referenced by trx_roll_pop_top_rec_of_trx(), and trx_undo_report_row_operation().
ulint trx_undo_struct::top_page_no |
page number where the latest undo log record was catenated; during rollback the page from which the latest undo record was chosen
Definition at line 404 of file trx0undo.h.
Referenced by trx_roll_pop_top_rec_of_trx(), trx_undo_add_page(), and trx_undo_report_row_operation().
undo_no_t trx_undo_struct::top_undo_no |
undo number of the latest record
Definition at line 411 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start(), trx_roll_pop_top_rec_of_trx(), and trx_undo_report_row_operation().
trx_id_t trx_undo_struct::trx_id |
id of the trx assigned to the undo log
Definition at line 380 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start().
ulint trx_undo_struct::type |
TRX_UNDO_INSERT or TRX_UNDO_UPDATE
Definition at line 368 of file trx0undo.h.
Referenced by trx_undo_add_page(), and trx_undo_set_state_at_finish().
XID trx_undo_struct::xid |
X/Open XA transaction identification
Definition at line 382 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start(), and trx_undo_set_state_at_prepare().
ulint trx_undo_struct::zip_size |
compressed page size of space in bytes, or 0 for uncompressed
Definition at line 391 of file trx0undo.h.
Referenced by trx_undo_add_page(), trx_undo_report_row_operation(), trx_undo_set_state_at_finish(), trx_undo_set_state_at_prepare(), and trx_undo_truncate_end().