A helper class to handle partition file names during server upgrade.
More...
#include <fil0tablespace_scan.h>
A helper class to handle partition file names during server upgrade.
◆ ~Partition_file_names_upgrader()
| ib::fil::Partition_file_names_upgrader::~Partition_file_names_upgrader |
( |
| ) |
|
|
inline |
◆ add_old_path()
| void ib::fil::Partition_file_names_upgrader::add_old_path |
( |
const std::string & |
path | ) |
|
|
inline |
Add a path to the list of old paths for partitions.
- Parameters
-
| [in] | path | path to be added. |
◆ get_partition_file()
| bool ib::fil::Partition_file_names_upgrader::get_partition_file |
( |
const std::string & |
old_path, |
|
|
ib_file_suffix |
extn, |
|
|
std::string & |
new_path |
|
) |
| |
|
static |
Get modified name for partition file.
During upgrade we change all partition files to have lower case separator and partition name.
- Parameters
-
| [in] | old_path | old file name and path |
| [in] | extn | file extension suffix |
| [out] | new_path | modified new name for partitioned file |
- Returns
- true, iff name needs modification.
◆ rename_partition_file()
| void ib::fil::Partition_file_names_upgrader::rename_partition_file |
( |
const std::string & |
old_path, |
|
|
ib_file_suffix |
extn, |
|
|
bool |
revert, |
|
|
bool |
import |
|
) |
| |
|
static |
Rename partition file.
- Parameters
-
| [in] | old_path | old file path |
| [in] | extn | file extension suffix |
| [in] | revert | if true, rename from new to old file |
| [in] | import | if called during import |
◆ rename_partition_files()
| void ib::fil::Partition_file_names_upgrader::rename_partition_files |
( |
bool |
revert | ) |
|
Rename partition files during upgrade.
- Parameters
-
| [in] | revert | if true, revert to old names |
◆ m_old_paths
| std::vector<std::string> ib::fil::Partition_file_names_upgrader::m_old_paths |
|
private |
Old file paths during 5.7 upgrade.
It will be populated by Scanned_tablespace_dirs::scan()
The documentation for this class was generated from the following files: