MySQL 8.0.39
Source Code Documentation
|
File space management. More...
Functions | |
static bool | fsp_descr_page (const page_id_t &page_id, const page_size_t &page_size) |
Checks if a page address is an extent descriptor page address. More... | |
static bool | fsp_flags_is_compressed (uint32_t flags) |
Determine if the tablespace is compressed from tablespace flags. More... | |
constexpr uint32_t | ACTUAL_SSIZE (uint32_t ssize) |
static bool | fsp_flags_are_equal (uint32_t flags1, uint32_t flags2) |
Determine if two tablespaces are equivalent or compatible. More... | |
static uint32_t | page_size_to_ssize (ulint page_size) |
Convert a page size, which is a power of 2, to an ssize, which is the number of bit shifts from 512 to make that page size. More... | |
static uint32_t | fsp_flags_set_zip_size (uint32_t flags, const page_size_t &page_size) |
Add the compressed page size to the tablespace flags. More... | |
static uint32_t | fsp_flags_set_page_size (uint32_t flags, const page_size_t &page_size) |
Add the page size to the tablespace flags. More... | |
static uint32_t | fsp_flags_init (const page_size_t &page_size, bool atomic_blobs, bool has_data_dir, bool is_shared, bool is_temporary, bool is_encrypted) |
Initialize an FSP flags integer. More... | |
static ulint | xdes_calc_descriptor_index (const page_size_t &page_size, ulint offset) |
Calculates the descriptor index within a descriptor page. More... | |
static bool | xdes_get_bit (const xdes_t *descr, ulint bit, page_no_t offset) |
Gets a descriptor bit of a page. More... | |
static page_no_t | xdes_calc_descriptor_page (const page_size_t &page_size, page_no_t offset) |
Calculates the page where the descriptor of a page resides. More... | |
static ulint | xdes_arr_size (const page_size_t &page_size) |
Calculates the descriptor array size. More... | |
bool | fsp_is_inode_page (page_no_t page) |
Check if a specified page is inode page or not. More... | |
bool | fsp_flags_is_valid (uint32_t flags) |
Validate the tablespace flags. More... | |
ulint | fsp_header_get_sdi_offset (const page_size_t &page_size) |
Get the offset of SDI root page number in page 0. More... | |
ulint | fsp_header_get_encryption_progress_offset (const page_size_t &page_size) |
Get the offset of encryption progress information in page 0. More... | |
static uint32_t | fsp_header_get_server_version (const page_t *page) |
Reads the server space version from the first page of a tablespace. More... | |
static uint32_t | fsp_header_get_space_version (const page_t *page) |
Reads the server space version from the first page of a tablespace. More... | |
File space management.
Created 12/18/1995 Heikki Tuuri
|
constexpr |
|
inlinestatic |
Checks if a page address is an extent descriptor page address.
[in] | page_id | page id |
[in] | page_size | page size |
|
inlinestatic |
Determine if two tablespaces are equivalent or compatible.
[in] | flags1 | First tablespace flags |
[in] | flags2 | Second tablespace flags |
|
inlinestatic |
Initialize an FSP flags integer.
[in] | page_size | page sizes in bytes and compression flag. |
[in] | atomic_blobs | Used by Dynammic and Compressed. |
[in] | has_data_dir | This tablespace is in a remote location. |
[in] | is_shared | This tablespace can be shared by many tables. |
[in] | is_temporary | This tablespace is temporary. |
[in] | is_encrypted | This tablespace is encrypted. |
|
inlinestatic |
Determine if the tablespace is compressed from tablespace flags.
[in] | flags | Tablespace flags |
|
inline |
Validate the tablespace flags.
These flags are stored in the tablespace header at offset FSP_SPACE_FLAGS. They should be 0 for ROW_FORMAT=COMPACT and ROW_FORMAT=REDUNDANT. The newer row formats, COMPRESSED and DYNAMIC, will have at least the DICT_TF_COMPACT bit set.
[in] | flags | Tablespace flags |
|
inlinestatic |
Add the page size to the tablespace flags.
[in] | flags | Tablespace flags |
[in] | page_size | page sizes in bytes and compression flag. |
|
inlinestatic |
Add the compressed page size to the tablespace flags.
[in] | flags | Tablespace flags |
[in] | page_size | page sizes in bytes and compression flag. |
|
inline |
Get the offset of encryption progress information in page 0.
[in] | page_size | page size. |
|
inline |
Get the offset of SDI root page number in page 0.
[in] | page_size | Page size. |
|
inlinestatic |
Reads the server space version from the first page of a tablespace.
[in] | page | first page of a tablespace |
|
inlinestatic |
Reads the server space version from the first page of a tablespace.
[in] | page | first page of a tablespace |
|
inline |
Check if a specified page is inode page or not.
This is used for index root pages of hard-coded DD tables, we can safely assume that the passed in page number is in the range of pages which are only either index root page or inode page
[in] | page | Page number to check |
|
inlinestatic |
Convert a page size, which is a power of 2, to an ssize, which is the number of bit shifts from 512 to make that page size.
[in] | page_size | compressed page size in bytes |
|
inlinestatic |
Calculates the descriptor array size.
[in] | page_size | page size |
|
inlinestatic |
Calculates the descriptor index within a descriptor page.
[in] | page_size | page size |
[in] | offset | page offset |
|
inlinestatic |
Calculates the page where the descriptor of a page resides.
[in] | page_size | page size |
[in] | offset | page offset |