MySQL 26.7.0
Source Code Documentation
Process_dirty_blocks Struct Reference

A filter which, if passed to for_each_block_in_reverse, calls the provided visitor only for the blocks which were modified by this mtr. More...

Public Member Functions

 Process_dirty_blocks (ut::Function_reference< void(buf_block_t *)> dirty_page_visitor)
 Constructor. More...
 
bool operator() (mtr_memo_slot_t *slot) const
 

Public Attributes

ut::Function_reference< void(buf_block_t *)> m_dirty_page_visitor
 

Detailed Description

A filter which, if passed to for_each_block_in_reverse, calls the provided visitor only for the blocks which were modified by this mtr.

Note: the pages are considered to be modified if they were X or SX latched, or made_dirty_with_no_latch, so there could be false-positives. Note: as a side effect made_dirty_with_no_latch gets cleared.

Constructor & Destructor Documentation

◆ Process_dirty_blocks()

Process_dirty_blocks::Process_dirty_blocks ( ut::Function_reference< void(buf_block_t *)>  dirty_page_visitor)
inline

Constructor.

Parameters
[in]dirty_page_visitorA callback to be called for each page dirtied by this mtr

Member Function Documentation

◆ operator()()

bool Process_dirty_blocks::operator() ( mtr_memo_slot_t slot) const
inline
Returns
true always.

Member Data Documentation

◆ m_dirty_page_visitor

ut::Function_reference<void(buf_block_t *)> Process_dirty_blocks::m_dirty_page_visitor

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