MySQL 26.7.0
Source Code Documentation
ib::fil::Partition_file_names_upgrader Class Reference

A helper class to handle partition file names during server upgrade. More...

#include <fil0tablespace_scan.h>

Public Member Functions

 ~Partition_file_names_upgrader ()
 
void add_old_path (const std::string &path)
 Add a path to the list of old paths for partitions. More...
 
void rename_partition_files (bool revert)
 Rename partition files during upgrade. More...
 

Static Public Member Functions

static bool get_partition_file (const std::string &old_path, ib_file_suffix extn, std::string &new_path)
 Get modified name for partition file. More...
 
static void rename_partition_file (const std::string &old_path, ib_file_suffix extn, bool revert, bool import)
 Rename partition file. More...
 

Private Attributes

std::vector< std::string > m_old_paths
 Old file paths during 5.7 upgrade. More...
 

Detailed Description

A helper class to handle partition file names during server upgrade.

Constructor & Destructor Documentation

◆ ~Partition_file_names_upgrader()

ib::fil::Partition_file_names_upgrader::~Partition_file_names_upgrader ( )
inline

Member Function Documentation

◆ 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]pathpath 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_pathold file name and path
[in]extnfile extension suffix
[out]new_pathmodified 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_pathold file path
[in]extnfile extension suffix
[in]revertif true, rename from new to old file
[in]importif 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]revertif true, revert to old names

Member Data Documentation

◆ 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: