MySQL 8.0.39
Source Code Documentation
|
Validate the DD tablespace data against what's read during the directory scan on startup. More...
Public Member Functions | |
Validate_files () | |
Constructor. More... | |
dberr_t | validate (const DD_tablespaces &tablespaces) |
Validate the discovered tablespaces against the DD and attempt to open any DD tablespace not already open using a Parallel For Loop (par_for). More... | |
Private Types | |
using | DD_tablespaces = std::vector< const dd::Tablespace * > |
using | Const_iter = DD_tablespaces::const_iterator |
Private Member Functions | |
void | check (const Const_iter &begin, const Const_iter &end, size_t thread_id) |
Validate a range of tablespaces from the DD. More... | |
bool | failed () const |
space_id_t | get_space_max_id () const |
Private Attributes | |
std::atomic< space_id_t > | m_space_max_id |
Maximum tablespace ID found. More... | |
size_t | m_n_to_check |
Number of tablespaces to check. More... | |
size_t | m_n_threads |
Number of threads used in the parallel for. More... | |
std::atomic< std::chrono::steady_clock::time_point > | m_start_time |
The time when Validate_files::validate() starts or the last time one of the threads reported progress. More... | |
std::atomic_size_t | m_n_validated |
Number of tablespaces validated. More... | |
std::atomic_size_t | m_n_skipped |
Number of tablespaces skipped. More... | |
std::atomic_size_t | m_n_moved |
Number of tablespaces moved. More... | |
std::atomic_size_t | m_n_missing |
Number of tablespaces missing. More... | |
std::atomic_size_t | m_n_deleted |
Number of tablespaces deleted. More... | |
std::atomic_size_t | m_n_errors |
Number of threads that failed. More... | |
Validate the DD tablespace data against what's read during the directory scan on startup.
|
private |
|
private |
|
inline |
Constructor.
|
private |
Validate a range of tablespaces from the DD.
[in] | begin | Start of the slice |
[in] | end | End of the slice |
[in] | thread_id | Thread ID |
|
inlineprivate |
|
inlineprivate |
dberr_t Validate_files::validate | ( | const DD_tablespaces & | tablespaces | ) |
Validate the discovered tablespaces against the DD and attempt to open any DD tablespace not already open using a Parallel For Loop (par_for).
[in] | tablespaces | Tablespace files read from the DD |
|
private |
Number of tablespaces deleted.
|
private |
Number of threads that failed.
|
private |
Number of tablespaces missing.
|
private |
Number of tablespaces moved.
|
private |
Number of tablespaces skipped.
|
private |
Number of threads used in the parallel for.
|
private |
Number of tablespaces to check.
|
private |
Number of tablespaces validated.
|
private |
Maximum tablespace ID found.
|
private |
The time when Validate_files::validate() starts or the last time one of the threads reported progress.