23#ifndef TABLE_MAPPING_H
24#define TABLE_MAPPING_H
Table_map_log_event which maps a table definition to a number.
Definition: log_event.h:2285
std::unordered_map, but with my_malloc, so that you can track the memory used using PSI memory keys.
Definition: map_helpers.h:147
Maps table id's (integers) to table pointers.
Definition: rpl_tblmap.h:50
void clear_tables()
Definition: rpl_tblmap.cc:142
entry * m_free
Definition: rpl_tblmap.h:87
table_mapping()
Definition: rpl_tblmap.cc:56
ulong count() const
Definition: rpl_tblmap.h:69
~table_mapping()
Definition: rpl_tblmap.cc:61
enum_error
Definition: rpl_tblmap.h:55
@ ERR_NO_ERROR
Definition: rpl_tblmap.h:56
@ ERR_MEMORY_ALLOCATION
Definition: rpl_tblmap.h:58
@ ERR_LIMIT_EXCEEDED
Definition: rpl_tblmap.h:57
int remove_table(ulonglong table_id)
Definition: rpl_tblmap.cc:126
int set_table(ulonglong table_id, Mapped_table *table)
Definition: rpl_tblmap.cc:99
malloc_unordered_map< ulonglong, entry * > m_table_ids
Definition: rpl_tblmap.h:96
int expand()
Definition: rpl_tblmap.cc:87
MEM_ROOT m_mem_root
Definition: rpl_tblmap.h:52
Mapped_table * get_table(ulonglong table_id)
Definition: rpl_tblmap.cc:67
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
TABLE Mapped_table
Definition: rpl_tblmap.h:34
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: rpl_tblmap.h:72
Mapped_table * table
Definition: rpl_tblmap.h:75
entry * next
Definition: rpl_tblmap.h:76
ulonglong table_id
Definition: rpl_tblmap.h:73