MySQL 9.1.0
Source Code Documentation
|
Performance schema account (implementation). More...
#include "storage/perfschema/pfs_account.h"
#include <assert.h>
#include "my_compiler.h"
#include "my_sys.h"
#include "sql/mysqld.h"
#include "storage/perfschema/pfs.h"
#include "storage/perfschema/pfs_buffer_container.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_host.h"
#include "storage/perfschema/pfs_instr.h"
#include "storage/perfschema/pfs_instr_class.h"
#include "storage/perfschema/pfs_setup_actor.h"
#include "storage/perfschema/pfs_stat.h"
#include "storage/perfschema/pfs_user.h"
Classes | |
class | Proc_purge_account |
class | Proc_update_accounts_derived_flags |
Functions | |
int | init_account (const PFS_global_param *param) |
Initialize the user buffers. More... | |
void | cleanup_account () |
Cleanup all the account buffers. More... | |
static const uchar * | account_hash_get_key (const uchar *entry, size_t *length) |
static uint | account_hash_func (const LF_HASH *, const uchar *key, size_t key_len) |
static int | account_hash_cmp_func (const uchar *key1, size_t key_len1, const uchar *key2, size_t key_len2) |
int | init_account_hash (const PFS_global_param *param) |
Initialize the user hash. More... | |
void | cleanup_account_hash () |
Cleanup the user hash. More... | |
static LF_PINS * | get_account_hash_pins (PFS_thread *thread) |
static void | set_account_key (PFS_account_key *key, const PFS_user_name *user, const PFS_host_name *host) |
PFS_account * | find_or_create_account (PFS_thread *thread, const PFS_user_name *user, const PFS_host_name *host) |
PFS_account * | sanitize_account (PFS_account *unsafe) |
static void | purge_account (PFS_thread *thread, PFS_account *account) |
void | purge_all_account () |
Purge non connected accounts, reset stats of connected account. More... | |
void | update_accounts_derived_flags (PFS_thread *thread) |
Variables | |
LF_HASH | account_hash |
static bool | account_hash_inited = false |
Performance schema account (implementation).