Class Innodb::LogRecord
In: lib/innodb/log_record.rb
Parent: Object

An InnoDB transaction log block.

Methods

Constants

RECORD_TYPES = { 1 => :MLOG_1BYTE, 2 => :MLOG_2BYTE, 4 => :MLOG_4BYTE, 8 => :MLOG_8BYTE, 9 => :REC_INSERT, 10 => :REC_CLUST_DELETE_MARK, 11 => :REC_SEC_DELETE_MARK, 13 => :REC_UPDATE_IN_PLACE, 14 => :REC_DELETE, 15 => :LIST_END_DELETE, 16 => :LIST_START_DELETE, 17 => :LIST_END_COPY_CREATED, 18 => :PAGE_REORGANIZE, 19 => :PAGE_CREATE, 20 => :UNDO_INSERT, 21 => :UNDO_ERASE_END, 22 => :UNDO_INIT, 23 => :UNDO_HDR_DISCARD, 24 => :UNDO_HDR_REUSE, 25 => :UNDO_HDR_CREATE, 26 => :REC_MIN_MARK, 27 => :IBUF_BITMAP_INIT, 28 => :LSN, 29 => :INIT_FILE_PAGE, 30 => :WRITE_STRING, 31 => :MULTI_REC_END, 32 => :DUMMY_RECORD, 33 => :FILE_CREATE, 34 => :FILE_RENAME, 35 => :FILE_DELETE, 36 => :COMP_REC_MIN_MARK, 37 => :COMP_PAGE_CREATE, 38 => :COMP_REC_INSERT, 39 => :COMP_REC_CLUST_DELETE_MARK, 40 => :COMP_REC_SEC_DELETE_MARK, 41 => :COMP_REC_UPDATE_IN_PLACE, 42 => :COMP_REC_DELETE, 43 => :COMP_LIST_END_DELETE, 44 => :COMP_LIST_START_DELETE, 45 => :COMP_LIST_END_COPY_CREATE, 46 => :COMP_PAGE_REORGANIZE, 47 => :FILE_CREATE2, 48 => :ZIP_WRITE_NODE_PTR, 49 => :ZIP_WRITE_BLOB_PTR, 50 => :ZIP_WRITE_HEADER, 51 => :ZIP_PAGE_COMPRESS, }   InnoDB log record types.
UNDO_TYPES = { 1 => :UNDO_INSERT, 2 => :UNDO_UPDATE }   Types of undo log segments.
SINGLE_RECORD_MASK = 0x80   Single record flag is masked in the record type.
RECORD_TYPE_MASK = 0x7f
INFO_AND_STATUS_MASK = 0x1   Flag of whether an insert log record contains info and status.
LENGTH_NULL = 0xFFFFFFFF

Attributes

lsn  [RW]  Start and end LSNs for this record.
payload  [R] 
preamble  [R] 
size  [R]  The size (in bytes) of the record.

Public Instance methods

Dump the contents of the record.

Read the log record for delete marking or unmarking of a clustered index record. Ref. btr_cur_parse_del_mark_set_clust_rec

Read the index part of a log record for a compact record insert. Ref. mlog_parse_index

Read the insert record into page part of a insert log. Ref. page_cur_parse_insert_rec

Return a preamble of the first record in this block.

Read system fields values in a log record. Ref. row_upd_parse_sys_vals

Read the log record for an in-place update. Ref. btr_cur_parse_update_in_place

Read the update vector for an update log record. Ref. row_upd_index_parse

[Validate]