MySQL 9.1.0
Source Code Documentation
Log_data_block_header Struct Reference

Meta data stored in header of a log data block. More...

#include <log0types.h>

Public Member Functions

void set_lsn (lsn_t lsn)
 Sets m_epoch_no and m_hdr_no from a single lsn. More...
 

Public Attributes

uint32_t m_epoch_no
 Together with m_hdr_no form unique identifier of this block,. More...
 
uint32_t m_hdr_no
 Together with m_epoch_no form unique identifier of this block,. More...
 
uint16_t m_data_len
 Offset up to which this block has data inside, computed from the beginning of the block. More...
 
uint16_t m_first_rec_group
 Offset to the first mtr starting in this block, or 0 if there is no mtr starting in this block. More...
 

Detailed Description

Meta data stored in header of a log data block.

Member Function Documentation

◆ set_lsn()

void Log_data_block_header::set_lsn ( lsn_t  lsn)

Sets m_epoch_no and m_hdr_no from a single lsn.

Member Data Documentation

◆ m_data_len

uint16_t Log_data_block_header::m_data_len

Offset up to which this block has data inside, computed from the beginning of the block.

◆ m_epoch_no

uint32_t Log_data_block_header::m_epoch_no

Together with m_hdr_no form unique identifier of this block,.

See also
LOG_BLOCK_EPOCH_NO.

◆ m_first_rec_group

uint16_t Log_data_block_header::m_first_rec_group

Offset to the first mtr starting in this block, or 0 if there is no mtr starting in this block.

◆ m_hdr_no

uint32_t Log_data_block_header::m_hdr_no

Together with m_epoch_no form unique identifier of this block,.

See also
log_block_get_hdr_no. Each next log data block has hdr_no incremented by 1 (unless wrapped).

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