MySQL 9.1.0
Source Code Documentation
pfs_error.h File Reference

server error instrument data structures (declarations). More...

#include <sys/types.h>
#include "lf.h"
#include "mysqld_error.h"
#include "sql/derror.h"
#include "storage/perfschema/pfs_server.h"

Go to the source code of this file.

Functions

void reset_events_errors_by_thread ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_THREAD_BY_ERROR data. More...
 
void reset_events_errors_by_account ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_ACCOUNT_BY_ERROR data. More...
 
void reset_events_errors_by_user ()
 Reset table EVENTS_ERRORS_SUMMARY_BY_USER_BY_ERROR data. More...
 
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...
 
void aggregate_account_errors (PFS_account *account)
 
void aggregate_user_errors (PFS_user *user)
 
void aggregate_host_errors (PFS_host *host)
 
int init_error (const PFS_global_param *param)
 
void cleanup_error ()
 
uint lookup_error_stat_index (uint mysql_errno)
 

Variables

static const int NUM_SECTIONS
 
uint max_global_server_errors
 
uint max_session_server_errors
 
uint pfs_to_server_error_map []
 
server_error error_names_array [total_error_count+2]
 Names of all errors defined in err_msg.txt. More...
 

Detailed Description

server error instrument data structures (declarations).

Function Documentation

◆ aggregate_account_errors()

void aggregate_account_errors ( PFS_account account)

◆ aggregate_host_errors()

void aggregate_host_errors ( PFS_host host)

◆ aggregate_user_errors()

void aggregate_user_errors ( PFS_user user)

◆ cleanup_error()

void cleanup_error ( )

◆ 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[total_error_count+2]
extern

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
extern

◆ max_session_server_errors

uint max_session_server_errors
extern

◆ NUM_SECTIONS

const int NUM_SECTIONS
static
Initial value:
=
sizeof(errmsg_section_start) / sizeof(errmsg_section_start[0])

◆ pfs_to_server_error_map

uint pfs_to_server_error_map[]
extern