MySQL 26.7.0
Source Code Documentation
ib::redo::Page_handle Struct Referencefinal

The handle that represents the page where redo log records are applied. More...

#include <log0redo.h>

Classes

struct  Zipped
 Compressed page buffer and metadata about the compressed page. More...
 

Public Attributes

const uint32_t space_id
 Tablespace id. More...
 
const uint32_t page_no
 Page number. More...
 
const std::span< uint8_t > frame
 Page buffer. More...
 
std::optional< Zippedzipped
 An optional compressed page buffer that needs to be initialized iff this handle represents a compressed page. More...
 

Detailed Description

The handle that represents the page where redo log records are applied.

It includes the compressed and uncompressed page buffers which are named as frame as per the convention used in InnoDB. If handle represents a compressed page, then it must maintain metadata which may have updated during applying the log records.

Note
'const' page buffers in the handle mean that you can't modify direct fields of them, so you can't change .data nor .size, i.e. can't re-point them to anything else, or decide to change their size. OTOH, you can change values of bytes within these buffers.

Member Data Documentation

◆ frame

const std::span<uint8_t> ib::redo::Page_handle::frame

Page buffer.

◆ page_no

const uint32_t ib::redo::Page_handle::page_no

Page number.

◆ space_id

const uint32_t ib::redo::Page_handle::space_id

Tablespace id.

◆ zipped

std::optional<Zipped> ib::redo::Page_handle::zipped

An optional compressed page buffer that needs to be initialized iff this handle represents a compressed page.


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