MySQL 9.1.0
Source Code Documentation
|
Data structure that contains the information about shared tablespaces. More...
#include <fsp0space.h>
Public Types | |
typedef std::vector< Datafile, ut::allocator< Datafile > > | files_t |
Public Member Functions | |
Tablespace () | |
virtual | ~Tablespace () |
Tablespace (const Tablespace &) | |
Tablespace & | operator= (const Tablespace &) |
void | set_name (const char *name) |
Set tablespace name. More... | |
const char * | name () const |
Get tablespace name. More... | |
void | set_path (const char *path, size_t len) |
Set tablespace path and filename members. More... | |
void | set_path (const char *path) |
Set tablespace path and filename members. More... | |
const char * | path () const |
Get tablespace path. More... | |
void | set_space_id (space_id_t space_id) |
Set the space id of the tablespace. More... | |
space_id_t | space_id () const |
Get the space id of the tablespace. More... | |
void | set_flags (uint32_t fsp_flags) |
Set the tablespace flags. More... | |
uint32_t | flags () const |
Get the tablespace flags. More... | |
void | set_ignore_read_only (bool read_only_status) |
Set Ignore Read Only Status for tablespace. More... | |
void | shutdown () |
Free the memory allocated by the Tablespace object. More... | |
page_no_t | get_sum_of_sizes () const |
void | delete_files () |
Delete all the data files. More... | |
bool | intersection (const Tablespace *other_space) |
Check if two tablespaces have common data file names. More... | |
dberr_t | add_datafile (const char *datafile_added) |
Use the ADD DATAFILE path to create a Datafile object and add it to the front of m_files. More... | |
Datafile * | first_datafile () |
void | set_autoextend_size (uint64_t size) |
uint64_t | get_autoextend_size () const |
Public Attributes | |
files_t | m_files |
Data file information - each Datafile can be accessed globally. More... | |
Protected Attributes | |
bool | m_ignore_read_only |
Ignore server read only configuration for this tablespace. More... | |
Private Member Functions | |
bool | find (const char *filename) |
Find a filename in the list of Datafiles for a tablespace. More... | |
void | file_found (Datafile &file) |
Note that the data file was found. More... | |
Private Attributes | |
char * | m_name |
Name of the tablespace. More... | |
space_id_t | m_space_id |
Tablespace ID. More... | |
char * | m_path |
Path where tablespace files will reside, not including a filename. More... | |
uint32_t | m_flags |
Tablespace flags. More... | |
uint64_t | m_autoextend_size |
Autoextend size. More... | |
Data structure that contains the information about shared tablespaces.
Currently this can be the system tablespace or a temporary table tablespace
typedef std::vector<Datafile, ut::allocator<Datafile> > Tablespace::files_t |
|
inline |
|
inlinevirtual |
Tablespace::Tablespace | ( | const Tablespace & | ) |
dberr_t Tablespace::add_datafile | ( | const char * | datafile_added | ) |
Use the ADD DATAFILE path to create a Datafile object and add it to the front of m_files.
Parse the datafile path into a path and a basename with extension 'ibd'. This datafile_path provided may be an absolute or relative path, but it must end with the extension .ibd and have a basename of at least 1 byte.
Set tablespace m_path member and add a Datafile with the filename.
[in] | datafile_added | full path of the tablespace file. |
void Tablespace::delete_files | ( | ) |
Delete all the data files.
|
private |
Note that the data file was found.
[in,out] | file | Data file object to set |
|
private |
Find a filename in the list of Datafiles for a tablespace.
[in] | filename | Name to lookup in the data files. |
|
inline |
|
inline |
Get the tablespace flags.
|
inline |
|
inline |
bool Tablespace::intersection | ( | const Tablespace * | other_space | ) |
Check if two tablespaces have common data file names.
[in] | other_space | Tablespace to check against this. |
|
inline |
Get tablespace name.
Tablespace & Tablespace::operator= | ( | const Tablespace & | ) |
|
inline |
Get tablespace path.
|
inline |
|
inline |
Set the tablespace flags.
[in] | fsp_flags | tablespace flags |
|
inline |
Set Ignore Read Only Status for tablespace.
[in] | read_only_status | read only status indicator |
|
inline |
Set tablespace name.
[in] | name | tablespace name |
|
inline |
Set tablespace path and filename members.
[in] | path | where tablespace file(s) resides |
|
inline |
Set tablespace path and filename members.
[in] | path | where tablespace file(s) resides |
[in] | len | length of the file path |
|
inline |
Set the space id of the tablespace.
[in] | space_id | tablespace ID to set |
void Tablespace::shutdown | ( | ) |
Free the memory allocated by the Tablespace object.
Frees the memory allocated by the SysTablespace object.
|
inline |
Get the space id of the tablespace.
|
private |
Autoextend size.
files_t Tablespace::m_files |
Data file information - each Datafile can be accessed globally.
|
private |
Tablespace flags.
|
protected |
Ignore server read only configuration for this tablespace.
|
private |
Name of the tablespace.
|
private |
Path where tablespace files will reside, not including a filename.
|
private |
Tablespace ID.