MySQL 9.1.0
Source Code Documentation
|
Go to the source code of this file.
Enumerations | |
enum class | Log_files_find_result { FOUND_VALID_FILES , FOUND_UNINITIALIZED_FILES , FOUND_NO_FILES , FOUND_VALID_FILES_BUT_MISSING_NEWEST , FOUND_DISABLED_FILES , FOUND_CORRUPTED_FILES , SYSTEM_ERROR } |
Result returned by the. More... | |
Functions | |
Log_files_find_result | log_files_find_and_analyze (bool read_only, Encryption_metadata &encryption_metadata, Log_files_dict &files, Log_format &format, std::string &creator_name, Log_flags &log_flags, Log_uuid &log_uuid) |
Scans for existing log files on disk. More... | |
|
strong |
Result returned by the.
Log_files_find_result log_files_find_and_analyze | ( | bool | read_only, |
Encryption_metadata & | encryption_metadata, | ||
Log_files_dict & | files, | ||
Log_format & | format, | ||
std::string & | creator_name, | ||
Log_flags & | log_flags, | ||
Log_uuid & | log_uuid | ||
) |
Scans for existing log files on disk.
Performs basic validation for the files that have been found. Clears and builds the Log_files_dict. Determines global properties of the redo log files: format, creator, flags and uuid.
[in] | read_only | T: check file permissions only for reading, F: check for both reading and writing |
[in] | encryption_metadata | pointer to encryption metadata to be used by all redo log file IO operations except those related to the first LOG_FILE_HDR_SIZE bytes of each log file |
[out] | files | dictionary of files that have been found when FOUND_VALID_FILES is returned; otherwise stays untouched |
[out] | format | discovered format of the redo log files |
[out] | creator_name | name of creator of the files |
[out] | log_flags | discovered flags of the redo log files |
[out] | log_uuid | discovered uuid of the redo log files |
The size_capacity was computed by iterating files_list, in which we potentially could have two files with the same m_id if some bug was introduced. This should be caught easily by this check.