drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
trx_undo_struct Struct Reference

#include <trx0undo.h>

Collaboration diagram for trx_undo_struct:
[legend]

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

Detailed Description

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.

Member Function Documentation

◆ UT_LIST_NODE_T()

trx_undo_struct::UT_LIST_NODE_T ( trx_undo_t )

undo log objects in the rollback segment are chained into lists

Member Data Documentation

◆ del_marks

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 365 of file trx0undo.h.

◆ dict_operation

ibool trx_undo_struct::dict_operation

TRUE if a dict operation trx

Definition at line 377 of file trx0undo.h.

◆ empty

ulint trx_undo_struct::empty

TRUE if the stack of undo log records is currently empty

Definition at line 395 of file trx0undo.h.

◆ guess_block

buf_block_t* trx_undo_struct::guess_block

guess for the buffer block where the top page might reside

Definition at line 405 of file trx0undo.h.

◆ hdr_offset

ulint trx_undo_struct::hdr_offset

header offset of the undo log on the page

Definition at line 388 of file trx0undo.h.

◆ hdr_page_no

ulint trx_undo_struct::hdr_page_no

page number of the header page in the undo log

Definition at line 386 of file trx0undo.h.

◆ id

ulint trx_undo_struct::id

undo log slot number within the rollback segment

Definition at line 359 of file trx0undo.h.

◆ last_page_no

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 390 of file trx0undo.h.

◆ rseg

trx_rseg_t* trx_undo_struct::rseg

rseg where the undo log belongs

Definition at line 380 of file trx0undo.h.

◆ size

ulint trx_undo_struct::size

current size in pages

Definition at line 393 of file trx0undo.h.

◆ space

ulint trx_undo_struct::space

space id where the undo log placed

Definition at line 382 of file trx0undo.h.

◆ state

ulint trx_undo_struct::state

state of the corresponding undo log segment

Definition at line 363 of file trx0undo.h.

◆ table_id

table_id_t trx_undo_struct::table_id

if a dict operation, then the table id

Definition at line 378 of file trx0undo.h.

◆ top_offset

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 401 of file trx0undo.h.

◆ top_page_no

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 397 of file trx0undo.h.

◆ top_undo_no

undo_no_t trx_undo_struct::top_undo_no

undo number of the latest record

Definition at line 404 of file trx0undo.h.

◆ trx_id

trx_id_t trx_undo_struct::trx_id

id of the trx assigned to the undo log

Definition at line 373 of file trx0undo.h.

◆ type

ulint trx_undo_struct::type

TRX_UNDO_INSERT or TRX_UNDO_UPDATE

Definition at line 361 of file trx0undo.h.

◆ xid

XID trx_undo_struct::xid

X/Open XA transaction identification

Definition at line 375 of file trx0undo.h.

◆ zip_size

ulint trx_undo_struct::zip_size

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

Definition at line 384 of file trx0undo.h.


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