23#ifndef TABLE_SETUP_ACTORS_H
24#define TABLE_SETUP_ACTORS_H
96 int rnd_pos(
const void *pos)
override;
98 int index_init(uint idx,
bool sorted)
override;
103 bool read_all)
override;
106 unsigned char *new_buf,
Field **fields)
override;
109 Field **fields)
override;
Definition: pfs_engine_table.h:299
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Definition: table_setup_actors.h:63
virtual bool match(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:80
PFS_key_role m_key_3
Definition: table_setup_actors.h:78
~PFS_index_setup_actors() override=default
PFS_key_host m_key_1
Definition: table_setup_actors.h:76
PFS_key_user m_key_2
Definition: table_setup_actors.h:77
PFS_index_setup_actors()
Definition: table_setup_actors.h:65
Definition: table_helper.h:1458
Definition: table_helper.h:1471
Definition: table_helper.h:1446
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:82
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_actors.cc:187
int index_next() override
Find key in index, read record.
Definition: table_setup_actors.cc:224
int update_row_values(TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) override
Update the current row values.
Definition: table_setup_actors.cc:300
static Plugin_table m_table_def
Table definition.
Definition: table_setup_actors.h:122
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_actors.cc:263
static ha_rows get_row_count()
Definition: table_setup_actors.cc:175
int index_init(uint idx, bool sorted) override
Definition: table_setup_actors.cc:215
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_actors.h:85
~table_setup_actors() override=default
table_setup_actors()
Definition: table_setup_actors.cc:179
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_actors.h:120
row_setup_actors m_row
Current row.
Definition: table_setup_actors.h:125
static int write_row(PFS_engine_table *pfs_table, TABLE *table, unsigned char *buf, Field **fields)
Definition: table_setup_actors.cc:106
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_actors.cc:182
int delete_row_values(TABLE *table, const unsigned char *buf, Field **fields) override
Delete a row.
Definition: table_setup_actors.cc:335
PFS_simple_index m_pos
Current position.
Definition: table_setup_actors.h:127
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_actors.cc:202
static int delete_all_rows()
Definition: table_setup_actors.cc:173
int make_row(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:246
PFS_index_setup_actors * m_opened_index
Definition: table_setup_actors.h:132
PFS_simple_index m_next_pos
Next position.
Definition: table_setup_actors.h:129
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_setup_actors.cc:102
mysql_service_pfs_plugin_table_v1_t * pfs_table
Definition: log0pfs.cc:46
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Common definition between mysql server & client.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:65
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Definition: pfs_name.h:245
Definition: pfs_name.h:266
A setup_actor record.
Definition: pfs_setup_actor.h:58
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Definition: pfs_name.h:224
Definition: thr_lock.h:138
A row of PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:50
PFS_user_name m_user_name
Column USER.
Definition: table_setup_actors.h:54
bool * m_history_ptr
Column HISTORY.
Definition: table_setup_actors.h:60
bool * m_enabled_ptr
Column ENABLED.
Definition: table_setup_actors.h:58
PFS_host_name m_host_name
Column HOST.
Definition: table_setup_actors.h:52
PFS_role_name m_role_name
Column ROLE.
Definition: table_setup_actors.h:56
Helpers to implement a performance schema table.