MySQL 26.7.0
Source Code Documentation
undo_truncate::Undo_num2id_map Class Reference

Map from undo tablespace number to space id to allow a reserved undo space ID to be found quickly. More...

#include <trx0undo_trunc.h>

Public Member Functions

 Undo_num2id_map (const std::vector< space_id_t > &space_ids)
 Constructor which will create the mapping from UNDO space number to UNDO space id from the given space_id list. More...
 
space_id_t get (space_id_t num)
 Find the UNDO space_id for a given UNDO space number from the mapping. More...
 
bool contains (space_id_t num)
 check if mapping contains an entry for given UNDO space number. More...
 

Private Attributes

std::unordered_map< space_id_t, space_id_tm_num2id {}
 Map from undo space_num to undo space_id. More...
 

Detailed Description

Map from undo tablespace number to space id to allow a reserved undo space ID to be found quickly.

Constructor & Destructor Documentation

◆ Undo_num2id_map()

undo_truncate::Undo_num2id_map::Undo_num2id_map ( const std::vector< space_id_t > &  space_ids)
inline

Constructor which will create the mapping from UNDO space number to UNDO space id from the given space_id list.

Parameters
[in]space_idslist of space ids

Member Function Documentation

◆ contains()

bool undo_truncate::Undo_num2id_map::contains ( space_id_t  num)
inline

check if mapping contains an entry for given UNDO space number.

Parameters
[in]numUNDO space number
Returns
True if entry is there, false otherwise

◆ get()

space_id_t undo_truncate::Undo_num2id_map::get ( space_id_t  num)
inline

Find the UNDO space_id for a given UNDO space number from the mapping.

Parameters
[in]numUndo space number
Returns
UNDO space_id

Member Data Documentation

◆ m_num2id

std::unordered_map<space_id_t, space_id_t> undo_truncate::Undo_num2id_map::m_num2id {}
private

Map from undo space_num to undo space_id.


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