MySQL 9.1.0
Source Code Documentation
pfs_error.cc File Reference

Server error instrument data structures (implementation). More...

Functions

static void fct_reset_events_errors_by_thread (PFS_thread *thread)
 
int init_error (const PFS_global_param *param)
 
void cleanup_error ()
 
void reset_events_errors_by_thread ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_THREAD_BY_ERROR data. More...
 
static void fct_reset_events_errors_by_account (PFS_account *pfs)
 
void reset_events_errors_by_account ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_ACCOUNT_BY_ERROR data. More...
 
static void fct_reset_events_errors_by_user (PFS_user *pfs)
 
void reset_events_errors_by_user ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_USER_BY_ERROR data. More...
 
static void fct_reset_events_errors_by_host (PFS_host *pfs)
 
void reset_events_errors_by_host ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_HOST_BY_ERROR data. More...
 
void reset_events_errors_global ()
 Reset table EVENTS_ERRORS_GLOBAL_BY_ERROR data. More...
 
uint lookup_error_stat_index (uint mysql_errno)
 

Variables

uint max_global_server_errors
 
uint max_session_server_errors
 
uint pfs_to_server_error_map [PFS_MAX_GLOBAL_SERVER_ERRORS]
 
server_error error_names_array []
 Names of all errors defined in err_msg.txt. More...
 

Detailed Description

Server error instrument data structures (implementation).

Function Documentation

◆ cleanup_error()

void cleanup_error ( )

◆ fct_reset_events_errors_by_account()

static void fct_reset_events_errors_by_account ( PFS_account pfs)
static

◆ fct_reset_events_errors_by_host()

static void fct_reset_events_errors_by_host ( PFS_host pfs)
static

◆ fct_reset_events_errors_by_thread()

static void fct_reset_events_errors_by_thread ( PFS_thread thread)
static

◆ fct_reset_events_errors_by_user()

static void fct_reset_events_errors_by_user ( PFS_user pfs)
static

◆ init_error()

int init_error ( const PFS_global_param param)

◆ lookup_error_stat_index()

uint lookup_error_stat_index ( uint  mysql_errno)

◆ reset_events_errors_by_account()

void reset_events_errors_by_account ( )

Reset table EVENTS_ERRORS_SUMMARY_BY_ACCOUNT_BY_ERROR data.

◆ reset_events_errors_by_host()

void reset_events_errors_by_host ( )

Reset table EVENTS_ERRORS_SUMMARY_BY_HOST_BY_ERROR data.

◆ reset_events_errors_by_thread()

void reset_events_errors_by_thread ( )

Reset table EVENTS_ERRORS_SUMMARY_BY_THREAD_BY_ERROR data.

◆ reset_events_errors_by_user()

void reset_events_errors_by_user ( )

Reset table EVENTS_ERRORS_SUMMARY_BY_USER_BY_ERROR data.

◆ reset_events_errors_global()

void reset_events_errors_global ( )

Reset table EVENTS_ERRORS_GLOBAL_BY_ERROR data.

Variable Documentation

◆ error_names_array

server_error error_names_array[]
Initial value:
= {
}

Names of all errors defined in err_msg.txt.

This includes all names, instrumented or not.

◆ max_global_server_errors

uint max_global_server_errors

◆ max_session_server_errors

uint max_session_server_errors

◆ pfs_to_server_error_map

uint pfs_to_server_error_map[PFS_MAX_GLOBAL_SERVER_ERRORS]