MySQL 8.0.40
Source Code Documentation
|
Maps table id's (integers) to table pointers. More...
#include <rpl_tblmap.h>
Classes | |
struct | entry |
Public Types | |
enum | enum_error { ERR_NO_ERROR = 0 , ERR_LIMIT_EXCEEDED , ERR_MEMORY_ALLOCATION } |
Public Member Functions | |
table_mapping () | |
~table_mapping () | |
Mapped_table * | get_table (ulonglong table_id) |
int | set_table (ulonglong table_id, Mapped_table *table) |
int | remove_table (ulonglong table_id) |
void | clear_tables () |
ulong | count () const |
Private Member Functions | |
int | expand () |
Private Attributes | |
MEM_ROOT | m_mem_root |
entry * | m_free |
malloc_unordered_map< ulonglong, entry * > | m_table_ids |
Maps table id's (integers) to table pointers.
In mysqlbinlog, "table pointer" means Table_map_log_event*.
In the server, "table pointer" means TABLE*.
table_mapping::table_mapping | ( | ) |
table_mapping::~table_mapping | ( | ) |
void table_mapping::clear_tables | ( | ) |
|
inline |
|
private |
Mapped_table * table_mapping::get_table | ( | ulonglong | table_id | ) |
int table_mapping::remove_table | ( | ulonglong | table_id | ) |
int table_mapping::set_table | ( | ulonglong | table_id, |
Mapped_table * | table | ||
) |
|
private |
|
private |
|
private |