MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
trx_undo_t Struct Reference

#include <trx0undo.h>

Collaboration diagram for trx_undo_t:

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_trseg
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_tguess_block

Detailed Description

Transaction undo log memory object; this is protected by the undo_mutex

in the corresponding transaction object

Definition at line 411 of file trx0undo.h.

Member Function Documentation

trx_undo_t::UT_LIST_NODE_T ( trx_undo_t  )

undo log objects in the rollback segment are chained into lists

Member Data Documentation

ibool trx_undo_t::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 419 of file trx0undo.h.

ibool trx_undo_t::dict_operation

TRUE if a dict operation trx

Definition at line 431 of file trx0undo.h.

ulint trx_undo_t::empty

TRUE if the stack of undo log records is currently empty

Definition at line 449 of file trx0undo.h.

buf_block_t* trx_undo_t::guess_block

guess for the buffer block where the top page might reside

Definition at line 459 of file trx0undo.h.

ulint trx_undo_t::hdr_offset

header offset of the undo log on the page

Definition at line 442 of file trx0undo.h.

ulint trx_undo_t::hdr_page_no

page number of the header page in the undo log

Definition at line 440 of file trx0undo.h.

ulint trx_undo_t::id

undo log slot number within the rollback segment

Definition at line 413 of file trx0undo.h.

ulint trx_undo_t::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 444 of file trx0undo.h.

trx_rseg_t* trx_undo_t::rseg

rseg where the undo log belongs

Definition at line 434 of file trx0undo.h.

ulint trx_undo_t::size

current size in pages

Definition at line 447 of file trx0undo.h.

ulint trx_undo_t::space

space id where the undo log placed

Definition at line 436 of file trx0undo.h.

ulint trx_undo_t::state

state of the corresponding undo log segment

Definition at line 417 of file trx0undo.h.

table_id_t trx_undo_t::table_id

if a dict operation, then the table id

Definition at line 432 of file trx0undo.h.

ulint trx_undo_t::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 455 of file trx0undo.h.

ulint trx_undo_t::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 451 of file trx0undo.h.

undo_no_t trx_undo_t::top_undo_no

undo number of the latest record

Definition at line 458 of file trx0undo.h.

trx_id_t trx_undo_t::trx_id

id of the trx assigned to the undo log

Definition at line 427 of file trx0undo.h.

ulint trx_undo_t::type

TRX_UNDO_INSERT or TRX_UNDO_UPDATE

Definition at line 415 of file trx0undo.h.

XID trx_undo_t::xid

X/Open XA transaction identification

Definition at line 429 of file trx0undo.h.

ulint trx_undo_t::zip_size

compressed page size of space in bytes, or 0 for uncompressed

Definition at line 438 of file trx0undo.h.


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