MySQL 8.3.0
Source Code Documentation
pfs_user.h File Reference

Performance schema user (declarations). More...

#include <sys/types.h>
#include <atomic>
#include "lf.h"
#include "my_inttypes.h"
#include "mysql_com.h"
#include "storage/perfschema/pfs_con_slice.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_lock.h"
#include "storage/perfschema/pfs_name.h"

Go to the source code of this file.

Classes

struct  PFS_user_key
 Hash key for a user. More...
 
struct  PFS_user
 Per user statistics. More...
 

Functions

int init_user (const PFS_global_param *param)
 Initialize the user buffers. More...
 
void cleanup_user ()
 Cleanup all the user buffers. More...
 
int init_user_hash (const PFS_global_param *param)
 Initialize the user hash. More...
 
void cleanup_user_hash ()
 Cleanup the user hash. More...
 
PFS_userfind_or_create_user (PFS_thread *thread, const PFS_user_name *user)
 
PFS_usersanitize_user (PFS_user *unsafe)
 
void purge_all_user ()
 Purge non connected users, reset stats of connected users. More...
 

Variables

LF_HASH user_hash
 

Detailed Description

Performance schema user (declarations).