MySQL 8.0.39
Source Code Documentation
PersistentTableMetadata Class Reference

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_tget_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...
 

Detailed Description

Persistent dynamic metadata for a table.

Constructor & Destructor Documentation

◆ PersistentTableMetadata()

PersistentTableMetadata::PersistentTableMetadata ( table_id_t  id,
uint64_t  version 
)
inline

Constructor.

Parameters
[in]idtable id
[in]versiontable dynamic metadata version

Member Function Documentation

◆ add_corrupted_index()

void PersistentTableMetadata::add_corrupted_index ( const index_id_t  id)
inline

Add a corrupted index id and space id.

Parameters
[in]idcorrupted index id

◆ get_autoinc()

uint64_t PersistentTableMetadata::get_autoinc ( ) const
inline

Get the autoinc counter of the table.

Returns
the autoinc counter

◆ get_corrupted_indexes()

const corrupted_ids_t & PersistentTableMetadata::get_corrupted_indexes ( ) const
inline

Get the corrupted indexes' IDs.

Returns
the vector of indexes' IDs

◆ get_table_id()

table_id_t PersistentTableMetadata::get_table_id ( ) const
inline

Get the table id of the metadata.

Returns
table id

◆ get_version()

uint64_t PersistentTableMetadata::get_version ( ) const
inline

Get the dynamic metadata version.

◆ set_autoinc()

void PersistentTableMetadata::set_autoinc ( uint64_t  autoinc)
inline

Set the autoinc counter of the table.

Parameters
[in]autoincautoinc counter

◆ set_autoinc_if_bigger()

void PersistentTableMetadata::set_autoinc_if_bigger ( uint64_t  autoinc)
inline

Set the autoinc counter of the table if it's bigger.

Parameters
[in]autoincautoinc counter

◆ set_version()

void PersistentTableMetadata::set_version ( uint64_t  version)
inline

Set the dynamic metadata version.

Parameters
[in]versiondynamic metadata version

Member Data Documentation

◆ m_autoinc

uint64_t PersistentTableMetadata::m_autoinc
private

Autoinc counter of the table.

◆ m_corrupted_ids

corrupted_ids_t PersistentTableMetadata::m_corrupted_ids
private

Storing the corrupted indexes' ID if exist, or else empty.

◆ m_id

table_id_t PersistentTableMetadata::m_id
private

Table ID which this metadata belongs to.

◆ m_version

uint64_t PersistentTableMetadata::m_version
private

Table dynamic metadata version of the change.


The documentation for this class was generated from the following file: