MySQL 26.7.0
Source Code Documentation
ib::redo::Page_handle_wrapper Class Reference

A convenience wrapper over the Page_handle (where redo log records are applied). More...

#include <log0redo.h>

Public Member Functions

 Page_handle_wrapper (buf_block_t &block)
 
 Page_handle_wrapper (Page_handle_wrapper &&other) noexcept
 
 Page_handle_wrapper (const Page_handle_wrapper &)=delete
 
 ~Page_handle_wrapper ()
 
constexpr buf_block_tblock () noexcept
 
constexpr Page_handlehandle () noexcept
 
void update_block ()
 If it is compressed page then update the compressed page metadata in the block. More...
 

Private Attributes

buf_block_tm_block
 
Page_handle m_page_handle
 
bool m_need_to_update_block {true}
 

Detailed Description

A convenience wrapper over the Page_handle (where redo log records are applied).

It initializes the page handle from the buffer block and keep them sane. User must update the block after the redo log records are applied on the page handle.

Constructor & Destructor Documentation

◆ Page_handle_wrapper() [1/3]

ib::redo::Page_handle_wrapper::Page_handle_wrapper ( buf_block_t block)
explicit

◆ Page_handle_wrapper() [2/3]

ib::redo::Page_handle_wrapper::Page_handle_wrapper ( Page_handle_wrapper &&  other)
inlinenoexcept

◆ Page_handle_wrapper() [3/3]

ib::redo::Page_handle_wrapper::Page_handle_wrapper ( const Page_handle_wrapper )
delete

◆ ~Page_handle_wrapper()

ib::redo::Page_handle_wrapper::~Page_handle_wrapper ( )
inline

Member Function Documentation

◆ block()

constexpr buf_block_t & ib::redo::Page_handle_wrapper::block ( )
inlineconstexprnoexcept

◆ handle()

constexpr Page_handle & ib::redo::Page_handle_wrapper::handle ( )
inlineconstexprnoexcept

◆ update_block()

void ib::redo::Page_handle_wrapper::update_block ( )

If it is compressed page then update the compressed page metadata in the block.

Metadata may have changed during applying the log record

Member Data Documentation

◆ m_block

buf_block_t& ib::redo::Page_handle_wrapper::m_block
private

◆ m_need_to_update_block

bool ib::redo::Page_handle_wrapper::m_need_to_update_block {true}
private

◆ m_page_handle

Page_handle ib::redo::Page_handle_wrapper::m_page_handle
private

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