24#ifndef TABLE_TEMPORARY_ACCOUNT_LOCKS_H
25#define TABLE_TEMPORARY_ACCOUNT_LOCKS_H
108 int rnd_pos(
const void *pos)
override;
110 int index_init(uint idx,
bool sorted)
override;
115 bool read_all)
override;
Definition: sql_auth_cache.h:248
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_temporary_account_locks.h:81
PFS_index_temporary_account_locks_by_account()
Definition: table_temporary_account_locks.h:83
~PFS_index_temporary_account_locks_by_account() override=default
bool match(const row_temporary_account_locks *row) override
Definition: table_temporary_account_locks.cc:78
PFS_key_user m_key_1
Definition: table_temporary_account_locks.h:93
PFS_key_host m_key_2
Definition: table_temporary_account_locks.h:94
Definition: table_temporary_account_locks.h:69
virtual bool match(const row_temporary_account_locks *row)=0
PFS_index_temporary_account_locks(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: table_temporary_account_locks.h:71
~PFS_index_temporary_account_locks() override=default
Definition: table_helper.h:1522
Definition: table_helper.h:1509
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Table PERFORMANCE_SCHEMA.TEMPORARY_ACCOUNT_LOCKS.
Definition: table_temporary_account_locks.h:98
static ha_rows get_row_count()
Definition: table_temporary_account_locks.cc:104
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_temporary_account_locks.cc:209
static PFS_engine_table_share m_share
Table share.
Definition: table_temporary_account_locks.h:101
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_temporary_account_locks.cc:204
~table_temporary_account_locks() override=default
row_temporary_account_locks * m_all_rows
Definition: table_temporary_account_locks.h:129
uint m_row_count
Definition: table_temporary_account_locks.h:130
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_temporary_account_locks.cc:226
row_temporary_account_locks * m_row
Current row.
Definition: table_temporary_account_locks.h:132
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_temporary_account_locks.cc:269
int index_next() override
Find key in index, read record.
Definition: table_temporary_account_locks.cc:250
PFS_simple_index m_next_pos
Next position.
Definition: table_temporary_account_locks.h:136
PFS_simple_index m_pos
Current position.
Definition: table_temporary_account_locks.h:134
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_temporary_account_locks.cc:95
table_temporary_account_locks()
Definition: table_temporary_account_locks.cc:118
static THR_LOCK m_table_lock
Table share lock.
Definition: table_temporary_account_locks.h:125
PFS_index_temporary_account_locks * m_opened_index
Definition: table_temporary_account_locks.h:138
void materialize(THD *thd)
Definition: table_temporary_account_locks.cc:175
static Plugin_table m_table_def
Table definition.
Definition: table_temporary_account_locks.h:127
int index_init(uint idx, bool sorted) override
Definition: table_temporary_account_locks.cc:233
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1228
Some integer typedefs for easier portability.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
Row fragment for columns USER, HOST.
Definition: table_helper.h:554
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.TEMPORARY_ACCOUNT_LOCKS.
Definition: table_temporary_account_locks.h:52
ulong m_locked_until_daynr
Column LOCKED_UNTIL.
Definition: table_temporary_account_locks.h:66
ulong m_failed_login_attempts
Column FAILED_LOGIN_ATTEMPTS.
Definition: table_temporary_account_locks.h:58
ulong m_locked_since_daynr
Column LOCKED_SINCE.
Definition: table_temporary_account_locks.h:64
ulong m_password_lock_time_days
Column PASSWORD_LOCK_TIME.
Definition: table_temporary_account_locks.h:62
PFS_account_row m_account
Column USER, HOST.
Definition: table_temporary_account_locks.h:54
ulong m_remaining_login_attempts
Column REMAINING_LOGIN_ATTEMPTS.
Definition: table_temporary_account_locks.h:60
bool m_locked
Column LOCKED.
Definition: table_temporary_account_locks.h:56
Helpers to implement a performance schema table.