24#ifndef TABLE_ERROR_LOG_H
25#define TABLE_ERROR_LOG_H
192 bool read_all)
override;
197 int index_init(uint idx,
bool sorted)
override;
bool m_is_null
Definition: pfs_engine_table.h:281
enum ha_rkey_function m_find_flag
Definition: pfs_engine_table.h:280
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
key for the ERROR_CODE column
Definition: table_error_log.h:154
PFS_key_name m_key
Definition: table_error_log.h:164
bool match(log_sink_pfs_event *row) override
Match function for the index on the ERROR_CODE column.
Definition: table_error_log.cc:201
~PFS_index_error_log_by_error_code() override=default
PFS_index_error_log_by_error_code()
Definition: table_error_log.h:156
index on the LOGGED (timestamp/primary key) column
Definition: table_error_log.h:86
~PFS_index_error_log_by_logged() override=default
PFS_index_error_log_by_logged()
Definition: table_error_log.h:88
bool match(log_sink_pfs_event *row) override
Match function for the index on the LOGGED column.
Definition: table_error_log.cc:117
PFS_key_error_log_logged m_key
Definition: table_error_log.h:96
index on the PRIO column
Definition: table_error_log.h:141
PFS_index_error_log_by_prio()
Definition: table_error_log.h:143
bool match(log_sink_pfs_event *row) override
Match function for the index on the PRIO column.
Definition: table_error_log.cc:191
PFS_key_error_log_prio m_key
Definition: table_error_log.h:150
~PFS_index_error_log_by_prio() override=default
index on the ERROR_CODE column
Definition: table_error_log.h:168
bool match(log_sink_pfs_event *row) override
Match function for the index on the SUBSYSTEM column.
Definition: table_error_log.cc:211
PFS_index_error_log_by_subsys()
Definition: table_error_log.h:170
PFS_key_name m_key
Definition: table_error_log.h:178
~PFS_index_error_log_by_subsys() override=default
index on the THREAD_ID column
Definition: table_error_log.h:111
~PFS_index_error_log_by_thread_id() override=default
PFS_key_error_log_thread_id m_key
Definition: table_error_log.h:121
PFS_index_error_log_by_thread_id()
Definition: table_error_log.h:113
bool match(log_sink_pfs_event *row) override
Match function for the index on the THREAD_ID column.
Definition: table_error_log.cc:132
Generic index for error_log table.
Definition: cursor_by_error_log.h:242
Key for the LOGGED (timestamp/primary key) column.
Definition: table_error_log.h:68
ulonglong m_key_value
Definition: table_error_log.h:82
PFS_key_error_log_logged(const char *name)
Definition: table_error_log.h:70
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Definition: table_error_log.h:75
~PFS_key_error_log_logged() override=default
bool match(const log_sink_pfs_event *row)
Match function / comparator for the key on the LOGGED column.
Definition: table_error_log.cc:111
key for the PRIO column
Definition: table_error_log.h:125
void read(PFS_key_reader &reader, enum ha_rkey_function find_flag) override
Read function for the key on the PRIO column.
Definition: table_error_log.cc:177
enum enum_prio m_prio
Definition: table_error_log.h:137
PFS_key_error_log_prio(const char *name)
Definition: table_error_log.h:127
~PFS_key_error_log_prio() override=default
bool match(const log_sink_pfs_event *row)
Match function / comparator for the key on the PRIO column.
Definition: table_error_log.cc:142
key for the THREAD_ID column
Definition: table_error_log.h:100
~PFS_key_error_log_thread_id() override=default
bool match(const log_sink_pfs_event *row)
Match function / comparator for the key on the THREAD_ID column.
Definition: table_error_log.cc:127
PFS_key_error_log_thread_id(const char *name)
Definition: table_error_log.h:102
Definition: table_helper.h:1554
Definition: table_helper.h:1700
Definition: table_helper.h:1257
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Cursor CURSOR_BY_ERROR_LOG for error_log table.
Definition: cursor_by_error_log.h:252
Table PERFORMANCE_SCHEMA.ERROR_LOG.
Definition: table_error_log.h:182
static THR_LOCK m_table_lock
Table share lock.
Definition: table_error_log.h:207
static PFS_engine_table_share m_share
Table share.
Definition: table_error_log.h:185
table_error_log()
Definition: table_error_log.cc:108
static Plugin_table m_table_def
Table definition.
Definition: table_error_log.h:209
log_sink_pfs_event m_header
Current row.
Definition: table_error_log.h:212
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_error_log.cc:103
int index_init(uint idx, bool sorted) override
Create an index for the column with the ordinal idx.
Definition: table_error_log.cc:228
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Fill in a row's fields from this class's buffer.
Definition: table_error_log.cc:288
int make_row(log_sink_pfs_event *e) override
Copy an event from the ring-buffer into this class's buffer.
Definition: table_error_log.cc:267
char m_message[LOG_BUFF_MAX]
message (DATA column) from ring-buffer
Definition: table_error_log.h:213
~table_error_log() override=default
Cursor CURSOR_BY_ERROR_LOG (declarations); PFS_ringbuffer_index, PFS_index_error_log.
#define LOG_BUFF_MAX
advisory.
Definition: log_shared.h:225
ha_rkey_function
Definition: my_base.h:78
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
Definition: buf0block_hint.cc:30
Data types for columns used in the performance schema tables (declarations)
case opt name
Definition: sslopt-case.h:29
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
PFS_key_reader: Convert key into internal format.
Definition: pfs_engine_table.h:196
Definition: thr_lock.h:139
Definition: log_sink_perfschema.h:59
Helpers to implement a performance schema table.
Include file for Sun RPC to compile out of the box.