MySQL 8.0.40
Source Code Documentation
|
Recovery system data structure for the archiver. More...
#include <arch0recv.h>
Public Member Functions | |
Recovery (Arch_Page_Sys *page_sys, const char *dir_name) | |
Constructor: Initialize members. More... | |
~Recovery ()=default | |
Destructor: Close open file and free resources. More... | |
dberr_t | init_dblwr () |
Initialise the archiver's recovery system. More... | |
bool | scan_for_groups () |
Scan the archive directory and fetch all info related to group directories and its files. More... | |
void | print () |
Print information related to the archiver recovery system added for debugging purposes. More... | |
dberr_t | recover () |
Parse for group information and fill the group. More... | |
dberr_t | load_archiver () |
Load archiver with the related data and start tracking if required. More... | |
Recovery (Recovery const &)=delete | |
Disable copy construction. More... | |
Recovery & | operator= (Recovery const &)=delete |
Disable assignment. More... | |
Private Member Functions | |
void | read_group_dirs (const std::string file_path) |
Read all the group directories and store information related to them required for parsing. More... | |
void | read_group_files (const std::string dir_path, const std::string file_path) |
Read all the archived files belonging to a group and store information related to them required for parsing. More... | |
Private Attributes | |
std::string | m_arch_dir_name |
Archive directory. More... | |
Arch_Page_Sys * | m_page_sys |
Global dirty page archive system. More... | |
Arch_Dblwr_Ctx | m_dblwr_ctx {} |
Doublewrite buffer context. More... | |
Arch_Dir_Group_Info_Map | m_dir_group_info_map {} |
Mapping of group directory names and group information related to the group. More... | |
Recovery system data structure for the archiver.
|
inline |
Constructor: Initialize members.
[in,out] | page_sys | global dirty page archive system |
[in] | dir_name | main archiver directory name |
|
default |
Destructor: Close open file and free resources.
|
delete |
Disable copy construction.
dberr_t Arch_Page_Sys::Recovery::init_dblwr | ( | ) |
Initialise the archiver's recovery system.
dberr_t Arch_Page_Sys::Recovery::load_archiver | ( | ) |
Load archiver with the related data and start tracking if required.
void Arch_Page_Sys::Recovery::print | ( | ) |
Print information related to the archiver recovery system added for debugging purposes.
|
private |
Read all the group directories and store information related to them required for parsing.
[in] | file_path | file path information |
|
private |
Read all the archived files belonging to a group and store information related to them required for parsing.
[in] | dir_path | dir path information |
[in] | file_path | file path information |
dberr_t Arch_Page_Sys::Recovery::recover | ( | ) |
Parse for group information and fill the group.
bool Arch_Page_Sys::Recovery::scan_for_groups | ( | ) |
Scan the archive directory and fetch all info related to group directories and its files.
|
private |
Archive directory.
|
private |
Doublewrite buffer context.
|
private |
Mapping of group directory names and group information related to the group.
|
private |
Global dirty page archive system.