23#ifndef TABLE_PERSISTED_VARIABLES_H
24#define TABLE_PERSISTED_VARIABLES_H
87 int rnd_pos(
const void *pos)
override;
89 int index_init(uint idx,
bool sorted)
override;
94 bool read_all)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_persisted_variables.h:49
virtual bool match(const System_variable *pfs)
Definition: table_persisted_variables.cc:45
PFS_key_variable_name m_key
Definition: table_persisted_variables.h:59
~PFS_index_persisted_variables() override=default
PFS_index_persisted_variables()
Definition: table_persisted_variables.h:51
Definition: table_helper.h:1531
Persisted variables cache.
Definition: pfs_variable.h:663
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
System variable derived from sys_var object.
Definition: pfs_variable.h:168
Table PERFORMANCE_SCHEMA.PERSISTED_VARIABLES.
Definition: table_persisted_variables.h:74
~table_persisted_variables() override=default
row_persisted_variables m_row
Current row.
Definition: table_persisted_variables.h:112
PFS_index_persisted_variables * m_opened_index
Definition: table_persisted_variables.h:118
table_persisted_variables()
Definition: table_persisted_variables.cc:98
int index_next() override
Find key in index, read record.
Definition: table_persisted_variables.cc:160
pos_t m_pos
Current position.
Definition: table_persisted_variables.h:114
PFS_system_persisted_variables_cache m_sysvar_cache
Current THD variables.
Definition: table_persisted_variables.h:110
static THR_LOCK m_table_lock
Table share lock.
Definition: table_persisted_variables.h:105
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_persisted_variables.cc:132
static ha_rows get_row_count()
Definition: table_persisted_variables.cc:90
int make_row(const System_variable *system_var)
Definition: table_persisted_variables.cc:179
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_persisted_variables.cc:192
static Plugin_table m_table_def
Table definition.
Definition: table_persisted_variables.h:107
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_persisted_variables.cc:86
int index_init(uint idx, bool sorted) override
Definition: table_persisted_variables.cc:145
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_persisted_variables.cc:116
pos_t m_next_pos
Next position.
Definition: table_persisted_variables.h:116
int rnd_init(bool scan) override
Initialize table scan.
Definition: table_persisted_variables.cc:109
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_persisted_variables.cc:104
PFS_simple_index pos_t
Definition: table_persisted_variables.h:75
static PFS_engine_table_share m_share
Table share.
Definition: table_persisted_variables.h:79
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Some integer typedefs for easier portability.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
Performance schema system and status variables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
Performance schema instrumentation (declarations).
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Definition: table_helper.h:1087
Definition: table_helper.h:1100
Definition: thr_lock.h:138
A row of table PERFORMANCE_SCHEMA.PERSISTED_VARIABLES.
Definition: table_persisted_variables.h:66
PFS_variable_name_row m_variable_name
Column VARIABLE_NAME.
Definition: table_persisted_variables.h:68
PFS_variable_value_row m_variable_value
Column VARIABLE_VALUE.
Definition: table_persisted_variables.h:70
Helpers to implement a performance schema table.