![]() |
MySQL 26.7.0
Source Code Documentation
|
Data structure that contains the information about an InnoDB tablespace. More...
#include <fsp0space.h>
Public Member Functions | |
| Tablespace (space_id_t space_id, fil_type_t space_type) | |
| virtual | ~Tablespace () |
| Tablespace (const Tablespace &)=delete | |
| Tablespace & | operator= (const Tablespace &)=delete |
| const TNode & | node (size_t order) const |
| fil_type_t | space_type () const |
| Get tablespace type. More... | |
| void | set_name (const char *name) |
| Set tablespace name. More... | |
| const char * | name () const |
| Get tablespace name. More... | |
| void | set_path (const std::string &path) |
| Set tablespace path. More... | |
| const std::string & | 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... | |
| page_no_t | get_sum_of_expected_sizes_in_pages () const |
| std::vector< size_t > | delete_files () |
| Delete all the data files. More... | |
| bool | intersects (const Tablespace &other_space) |
| Check if two tablespaces have common data file names. More... | |
| void | add_datafile (const char *node_path) |
| Use the ADD DATAFILE path to create a node object and add it to the front of m_nodes. More... | |
| bool | is_read_only () const |
| Determines if the current tablespace should be opened for read-only. More... | |
| size_t | get_nodes_count () const |
| Returns the number of nodes the tablespace contains. More... | |
| std::string | get_node_full_path (size_t node_order=0) const |
| Returns a full path to the node. More... | |
| std::string | get_node_full_path (const Tablespace_node &node) const |
| Returns a full path to the node. More... | |
| void | set_autoextend_size (uint64_t size) |
| uint64_t | get_autoextend_size () const |
Protected Attributes | |
| ut::vector< TNode > | m_nodes |
| Data nodes information used in this tablespace, in the correct order. More... | |
Private Member Functions | |
| bool | find (std::string_view node_name) |
Private Attributes | |
| char * | m_name = nullptr |
| Name of the tablespace. More... | |
| space_id_t | m_space_id {SPACE_UNKNOWN} |
| Tablespace ID. More... | |
| std::string | 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... | |
| const fil_type_t | m_space_type |
| Type of the tablespace. More... | |
Data structure that contains the information about an InnoDB tablespace.
|
inline |
|
inlinevirtual |
|
delete |
| void ib::fsp::Tablespace< TNode >::add_datafile | ( | const char * | node_path | ) |
Use the ADD DATAFILE path to create a node object and add it to the front of m_nodes.
Parse the node 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 the first node with the path and filename to be extracted from node_path specified.
| [in] | node_path | full path of the tablespace node. |
| std::vector< size_t > ib::fsp::Tablespace< TNode >::delete_files |
Delete all the data files.
|
private |
| [in] | node_name | Name to lookup in the data nodes. |
|
inline |
Get the tablespace flags.
|
inline |
|
inline |
Returns a full path to the node.
| [in] | node | Node from the tablespace to query |
|
inline |
Returns a full path to the node.
| [in] | node_order | Number of the node on the list of nodes in the tablespace to query |
|
inline |
Returns the number of nodes the tablespace contains.
|
inline |
| bool ib::fsp::Tablespace< TNode >::intersects | ( | const Tablespace< TNode > & | other_space | ) |
Check if two tablespaces have common data file names.
| [in] | other_space | Tablespace to check against this. |
|
inline |
Determines if the current tablespace should be opened for read-only.
|
inline |
Get tablespace name.
|
inline |
|
delete |
|
inline |
Get tablespace path.
|
inline |
|
inline |
Set the tablespace flags.
| [in] | fsp_flags | tablespace flags |
|
inline |
Set tablespace name.
| [in] | name | tablespace name |
|
inline |
Set tablespace path.
| [in] | path | where tablespace nodes reside. |
|
inline |
Set the space id of the tablespace.
| [in] | space_id | tablespace ID to set |
|
inline |
Get the space id of the tablespace.
|
inline |
Get tablespace type.
|
private |
Autoextend size.
|
private |
Tablespace flags.
|
private |
Name of the tablespace.
|
protected |
Data nodes information used in this tablespace, in the correct order.
|
private |
Path where tablespace files will reside, not including a filename.
|
private |
Tablespace ID.
|
private |
Type of the tablespace.