#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 357 of file trx0undo.h.
undo log objects in the rollback segment are chained into lists
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 365 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history().
TRUE if a dict operation trx
Definition at line 377 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 395 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().
guess for the buffer block where the top page might reside
Definition at line 405 of file trx0undo.h.
Referenced by trx_undo_report_row_operation().
header offset of the undo log on the page
Definition at line 388 of file trx0undo.h.
Referenced by trx_purge_add_update_undo_to_history(), and trx_undo_truncate_end().
page number of the header page in the undo log
Definition at line 386 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 359 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().
page number of the last page in the undo log; this may differ from top_page_no during a rollback
Definition at line 390 of file trx0undo.h.
Referenced by trx_undo_add_page(), trx_undo_report_row_operation(), and trx_undo_truncate_end().
rseg where the undo log belongs
Definition at line 380 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 393 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 382 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 363 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 378 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start().
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 401 of file trx0undo.h.
Referenced by trx_roll_pop_top_rec_of_trx(), and trx_undo_report_row_operation().
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 397 of file trx0undo.h.
Referenced by trx_roll_pop_top_rec_of_trx(), trx_undo_add_page(), and trx_undo_report_row_operation().
undo number of the latest record
Definition at line 404 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().
id of the trx assigned to the undo log
Definition at line 373 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 361 of file trx0undo.h.
Referenced by trx_undo_add_page(), and trx_undo_set_state_at_finish().
X/Open XA transaction identification
Definition at line 375 of file trx0undo.h.
Referenced by trx_lists_init_at_db_start(), and trx_undo_set_state_at_prepare().
compressed page size of space in bytes, or 0 for uncompressed
Definition at line 384 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().