MySQL 8.0.40
Source Code Documentation
|
Reduced doublewrite file deserializer. More...
Public Member Functions | |
Reduced_batch_deserializer (Buffer *buf, uint32_t n_pages) | |
Constructor. More... | |
template<typename F > | |
dberr_t | deserialize (F &f) |
Deserialize page and call Functor f for each page_entry found from reduced dblwr page. More... | |
Private Member Functions | |
dberr_t | parse_header (const byte *page, uint16_t *data_len) noexcept |
Parse reduced dblwr batch page header. More... | |
template<typename F > | |
dberr_t | parse_page (const byte *page, F &f) noexcept |
template<typename F > | |
void | parse_page_data (const byte *page, uint16_t data_len, F &f) noexcept |
Utility function to parse page data. More... | |
Private Attributes | |
Buffer * | m_buf |
Temporary buffer to hold Reduced dblwr pages. More... | |
uint32_t | m_n_pages |
Number of reduced dblwr pages. More... | |
Reduced doublewrite file deserializer.
Used during crash recovery.
|
inlineexplicit |
Constructor.
[in] | buf | Buffer to hold the Reduced dblwr pages |
[in] | n_pages | Number of reduced dblwr pages |
|
inline |
Deserialize page and call Functor f for each page_entry found from reduced dblwr page.
[in] | f | Functor to process page entry from dblwr page |
|
inlineprivatenoexcept |
Parse reduced dblwr batch page header.
[in] | page | Page to parse |
[in] | data_len | length of data in page |
|
inlineprivatenoexcept |
|
inlineprivatenoexcept |
Utility function to parse page data.
[in] | page | reduced dblwr batch page |
[in] | data_len | length of data in page |
[in] | f | Callback function that process page entries |
|
private |
Temporary buffer to hold Reduced dblwr pages.
|
private |
Number of reduced dblwr pages.