MySQL 9.1.0
Source Code Documentation
pfs_variable.cc File Reference

Performance schema system variable and status variable (implementation). More...

#include "storage/perfschema/pfs_variable.h"
#include <assert.h>
#include <algorithm>
#include <map>
#include <vector>
#include "my_compiler.h"
#include "m_string.h"
#include "mutex_lock.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "sql/current_thd.h"
#include "sql/debug_sync.h"
#include "sql/derror.h"
#include "sql/mysqld.h"
#include "sql/persisted_variable.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"
#include "sql/sql_show.h"
#include "storage/perfschema/pfs.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_visitor.h"

Functions

void sum_user_status (PFS_client *pfs_user, System_status_var *status_totals)
 
void sum_host_status (PFS_client *pfs_host, System_status_var *status_totals)
 
void sum_account_status (PFS_client *pfs_account, System_status_var *status_totals)
 
void reset_pfs_status_stats ()
 Reset aggregated status counter stats for account, user and host. More...
 
void system_variable_warning ()
 Warning issued if the version of the system variable hash table changes during a query. More...
 
void status_variable_warning ()
 Warning issued if the global status variable array changes during a query. More...
 

Detailed Description

Performance schema system variable and status variable (implementation).

Function Documentation

◆ reset_pfs_status_stats()

void reset_pfs_status_stats ( )

Reset aggregated status counter stats for account, user and host.

Reset the aggregated status counter stats.

NOTE: Assumes LOCK_status is held.

◆ status_variable_warning()

void status_variable_warning ( )

Warning issued if the global status variable array changes during a query.

This can happen when a plugin is loaded or unloaded.

◆ sum_account_status()

void sum_account_status ( PFS_client pfs_account,
System_status_var status_totals 
)

◆ sum_host_status()

void sum_host_status ( PFS_client pfs_host,
System_status_var status_totals 
)

◆ sum_user_status()

void sum_user_status ( PFS_client pfs_user,
System_status_var status_totals 
)

◆ system_variable_warning()

void system_variable_warning ( )

Warning issued if the version of the system variable hash table changes during a query.

This can happen when a plugin is loaded or unloaded.