![]() |
MySQL 26.7.0
Source Code Documentation
|
A directory and tablespace files discovered under it during startup. More...
#include <fil0tablespace_scan.h>
Classes | |
| struct | Space_read_info |
| struct | Space_scan_info |
| Structure to represent space information collected after directory scanning. More... | |
Public Types | |
| using | Space_scan_infos = std::vector< Space_scan_info > |
| using | Space_id_to_scan_info = std::unordered_map< space_id_t, Space_scan_infos > |
Public Member Functions | |
| Scanned_tablespace_dir_and_files (const std::string &dir) | |
| Default constructor. More... | |
| size_t | add (Space_read_info space_info, const std::string &name) |
| Add a space to filename mapping. More... | |
| Space_scan_infos * | find_by_id (space_id_t space_id) |
| Get the file names that map to a space ID. More... | |
| bool | erase_path (space_id_t space_id) |
| Remove the entry for the space ID. More... | |
| void | clear () |
| Clear all the tablespace data. More... | |
| const Fil_path & | root () const |
| const std::string & | path () const |
| void | get_space_ids (std::vector< space_id_t > &space_ids) |
| void | print_mapping () |
Private Attributes | |
| Space_id_to_scan_info | m_id_to_scan_info |
| Mapping from tablespace ID to data filenames. More... | |
| Fil_path | m_dir |
| Top level directory where the above files were found. More... | |
A directory and tablespace files discovered under it during startup.
| using ib::fil::Scanned_tablespace_dir_and_files::Space_id_to_scan_info = std::unordered_map<space_id_t, Space_scan_infos> |
| using ib::fil::Scanned_tablespace_dir_and_files::Space_scan_infos = std::vector<Space_scan_info> |
|
inlineexplicit |
Default constructor.
| [in] | dir | Directory that the files are under |
| size_t ib::fil::Scanned_tablespace_dir_and_files::add | ( | Space_read_info | space_info, |
| const std::string & | name | ||
| ) |
Add a space to filename mapping.
| [in] | space_info | Tablespace Info |
| [in] | name | File name. |
|
inline |
Clear all the tablespace data.
|
inline |
Remove the entry for the space ID.
| [in] | space_id | Tablespace ID mapping to remove |
|
inline |
Get the file names that map to a space ID.
| [in] | space_id | Tablespace ID |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Top level directory where the above files were found.
|
private |
Mapping from tablespace ID to data filenames.
Note: The file names in m_id_to_scan_info are relative to m_dir.