MySQL 9.1.0
Source Code Documentation
|
Redo log - in-memory dictionary of log files (their meta data). More...
Functions | |
Helpers | |
bool | log_file_compute_logical_capacity (os_offset_t file_size_in_bytes, lsn_t &lsn_capacity) |
Computes logical capacity for the given physical size of the redo log file. More... | |
bool | log_file_compute_end_lsn (lsn_t start_lsn, os_offset_t file_size_in_bytes, lsn_t &end_lsn) |
Computes end_lsn for the given: start_lsn and size of the redo log file. More... | |
size_t | log_files_number_of_existing_files (const Log_files_dict &files) |
Counts the total number of existing log files. More... | |
size_t | log_files_number_of_consumed_files (const Log_files_dict &files) |
Counts the total number of existing and marked as consumed log files. More... | |
os_offset_t | log_files_size_of_existing_files (const Log_files_dict &files) |
Computes the total size of the existing log files (sum of sizes). More... | |
lsn_t | log_files_capacity_of_existing_files (const Log_files_dict &files) |
Computes the total capacity of the existing log files (sum of capacities). More... | |
Log_files_dict::Const_iterator | log_files_find_largest (const Log_files_dict &files) |
Finds the largest existing log file (with the largest m_size_in_bytes). More... | |
Redo log - in-memory dictionary of log files (their meta data).
bool log_file_compute_end_lsn | ( | lsn_t | start_lsn, |
os_offset_t | file_size_in_bytes, | ||
lsn_t & | end_lsn | ||
) |
Computes end_lsn for the given: start_lsn and size of the redo log file.
[in] | start_lsn | LSN of the first data byte within the file |
[in] | file_size_in_bytes | total size of file, expressed in bytes |
[out] | end_lsn | LSN after the last data byte within the file |
true | succeeded to compute end_lsn |
false | params were invalid |
bool log_file_compute_logical_capacity | ( | os_offset_t | file_size_in_bytes, |
lsn_t & | lsn_capacity | ||
) |
Computes logical capacity for the given physical size of the redo log file.
[in] | file_size_in_bytes | total size of file, expressed in bytes |
[out] | lsn_capacity | logical capacity of the file |
true | succeeded to compute the logical capacity |
false | params were invalid (file size was too small or too big) |
lsn_t log_files_capacity_of_existing_files | ( | const Log_files_dict & | files | ) |
Computes the total capacity of the existing log files (sum of capacities).
[in] | files | in-memory dictionary of log files |
Log_files_dict::Const_iterator log_files_find_largest | ( | const Log_files_dict & | files | ) |
Finds the largest existing log file (with the largest m_size_in_bytes).
[in] | files | in-memory dictionary of log files |
size_t log_files_number_of_consumed_files | ( | const Log_files_dict & | files | ) |
Counts the total number of existing and marked as consumed log files.
[in] | files | in-memory dictionary of log files |
size_t log_files_number_of_existing_files | ( | const Log_files_dict & | files | ) |
Counts the total number of existing log files.
[in] | files | in-memory dictionary of log files |
os_offset_t log_files_size_of_existing_files | ( | const Log_files_dict & | files | ) |
Computes the total size of the existing log files (sum of sizes).
[in] | files | in-memory dictionary of log files |