24#ifndef TABLE_MAPPING_H
25#define TABLE_MAPPING_H
Table_map_log_event which maps a table definition to a number.
Definition: log_event.h:2440
std::unordered_map, but with my_malloc, so that you can track the memory used using PSI memory keys.
Definition: map_helpers.h:157
Maps table id's (integers) to table pointers.
Definition: rpl_tblmap.h:51
void clear_tables()
Definition: rpl_tblmap.cc:143
entry * m_free
Definition: rpl_tblmap.h:88
table_mapping()
Definition: rpl_tblmap.cc:57
ulong count() const
Definition: rpl_tblmap.h:70
~table_mapping()
Definition: rpl_tblmap.cc:62
enum_error
Definition: rpl_tblmap.h:56
@ ERR_NO_ERROR
Definition: rpl_tblmap.h:57
@ ERR_MEMORY_ALLOCATION
Definition: rpl_tblmap.h:59
@ ERR_LIMIT_EXCEEDED
Definition: rpl_tblmap.h:58
int remove_table(ulonglong table_id)
Definition: rpl_tblmap.cc:127
int set_table(ulonglong table_id, Mapped_table *table)
Definition: rpl_tblmap.cc:100
malloc_unordered_map< ulonglong, entry * > m_table_ids
Definition: rpl_tblmap.h:97
int expand()
Definition: rpl_tblmap.cc:88
MEM_ROOT m_mem_root
Definition: rpl_tblmap.h:53
Mapped_table * get_table(ulonglong table_id)
Definition: rpl_tblmap.cc:68
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:56
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
TABLE Mapped_table
Definition: rpl_tblmap.h:35
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: rpl_tblmap.h:73
Mapped_table * table
Definition: rpl_tblmap.h:76
entry * next
Definition: rpl_tblmap.h:77
ulonglong table_id
Definition: rpl_tblmap.h:74