MySQL 8.0.39
Source Code Documentation
|
Persistent dynamic metadata for a table. More...
#include <dict0mem.h>
Public Member Functions | |
PersistentTableMetadata (table_id_t id, uint64_t version) | |
Constructor. More... | |
const corrupted_ids_t & | get_corrupted_indexes () const |
Get the corrupted indexes' IDs. More... | |
void | add_corrupted_index (const index_id_t id) |
Add a corrupted index id and space id. More... | |
void | set_version (uint64_t version) |
Set the dynamic metadata version. More... | |
uint64_t | get_version () const |
Get the dynamic metadata version. More... | |
table_id_t | get_table_id () const |
Get the table id of the metadata. More... | |
void | set_autoinc_if_bigger (uint64_t autoinc) |
Set the autoinc counter of the table if it's bigger. More... | |
void | set_autoinc (uint64_t autoinc) |
Set the autoinc counter of the table. More... | |
uint64_t | get_autoinc () const |
Get the autoinc counter of the table. More... | |
Private Attributes | |
table_id_t | m_id |
Table ID which this metadata belongs to. More... | |
uint64_t | m_version |
Table dynamic metadata version of the change. More... | |
corrupted_ids_t | m_corrupted_ids |
Storing the corrupted indexes' ID if exist, or else empty. More... | |
uint64_t | m_autoinc |
Autoinc counter of the table. More... | |
Persistent dynamic metadata for a table.
|
inline |
Constructor.
[in] | id | table id |
[in] | version | table dynamic metadata version |
|
inline |
Add a corrupted index id and space id.
[in] | id | corrupted index id |
|
inline |
Get the autoinc counter of the table.
|
inline |
Get the corrupted indexes' IDs.
|
inline |
Get the table id of the metadata.
|
inline |
Get the dynamic metadata version.
|
inline |
Set the autoinc counter of the table.
[in] | autoinc | autoinc counter |
|
inline |
Set the autoinc counter of the table if it's bigger.
[in] | autoinc | autoinc counter |
|
inline |
Set the dynamic metadata version.
[in] | version | dynamic metadata version |
|
private |
Autoinc counter of the table.
|
private |
Storing the corrupted indexes' ID if exist, or else empty.
|
private |
Table ID which this metadata belongs to.
|
private |
Table dynamic metadata version of the change.