MySQL 8.0.39
Source Code Documentation
|
Performance schema user (implementation). More...
#include "storage/perfschema/pfs_user.h"
#include <assert.h>
#include "my_compiler.h"
#include "my_sys.h"
#include "storage/perfschema/pfs.h"
#include "storage/perfschema/pfs_buffer_container.h"
#include "storage/perfschema/pfs_global.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"
Classes | |
class | Proc_purge_user |
Functions | |
int | init_user (const PFS_global_param *param) |
Initialize the user buffers. More... | |
void | cleanup_user () |
Cleanup all the user buffers. More... | |
static const uchar * | user_hash_get_key (const uchar *entry, size_t *length) |
static uint | user_hash_func (const LF_HASH *, const uchar *key, size_t key_len) |
static int | user_hash_cmp_func (const uchar *key1, size_t key_len1, const uchar *key2, size_t key_len2) |
int | init_user_hash (const PFS_global_param *param) |
Initialize the user hash. More... | |
void | cleanup_user_hash () |
Cleanup the user hash. More... | |
static LF_PINS * | get_user_hash_pins (PFS_thread *thread) |
static void | set_user_key (PFS_user_key *key, const PFS_user_name *user) |
PFS_user * | find_or_create_user (PFS_thread *thread, const PFS_user_name *user) |
PFS_user * | sanitize_user (PFS_user *unsafe) |
static void | purge_user (PFS_thread *thread, PFS_user *user) |
void | purge_all_user () |
Purge non connected users, reset stats of connected users. More... | |
Variables | |
LF_HASH | user_hash |
static bool | user_hash_inited = false |
Performance schema user (implementation).