MySQL 8.4.2
Source Code Documentation
component_sys_var_service.cc File Reference
#include <string.h>
#include <sys/types.h>
#include <memory>
#include <utility>
#include <mysql/components/minimal_chassis.h>
#include <mysql/components/services/log_builtins.h>
#include "component_sys_var_service_imp.h"
#include "lex_string.h"
#include "map_helpers.h"
#include "my_compiler.h"
#include "my_getopt.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "my_psi_config.h"
#include "my_sys.h"
#include "mysql/components/service_implementation.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/components/services/bits/psi_memory_bits.h"
#include "mysql/components/services/component_sys_var_service.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/components/services/system_variable_source_type.h"
#include "mysql/my_loglevel.h"
#include "mysql/psi/mysql_memory.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/psi/mysql_rwlock.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/status_var.h"
#include "mysql/strings/dtoa.h"
#include "mysql/strings/m_ctype.h"
#include "mysql/udf_registration_types.h"
#include "mysqld_error.h"
#include "nulls.h"
#include "sql/current_thd.h"
#include "sql/error_handler.h"
#include "sql/log.h"
#include "sql/mysqld.h"
#include "sql/persisted_variable.h"
#include "sql/set_var.h"
#include "sql/sql_class.h"
#include "sql/sql_component.h"
#include "sql/sql_lex.h"
#include "sql/sql_plugin_var.h"
#include "sql/sql_show.h"
#include "sql/sys_vars_shared.h"
#include "sql/thr_malloc.h"
#include "sql_string.h"
#include "strxmov.h"

Macros

#define FREE_RECORD(sysvar)
 

Functions

void comp_sys_var_init_psi_keys (void)
 
void mysql_comp_sys_var_services_init ()
 
int mysql_add_sysvar (sys_var *var)
 
const char * get_variable_value (sys_var *system_var, char *val_buf, size_t *val_length)
 

Variables

PSI_memory_key key_memory_comp_sys_var
 
static PSI_memory_info comp_sys_var_memory []
 

Macro Definition Documentation

◆ FREE_RECORD

#define FREE_RECORD (   sysvar)
Value:
my_free(const_cast<char *>( \
reinterpret_cast<sys_var_pluginvar *>(sysvar)->plugin_var->name)); \
my_free(reinterpret_cast<sys_var_pluginvar *>(sysvar)->plugin_var); \
delete reinterpret_cast<sys_var_pluginvar *>(sysvar);
Definition: sql_plugin_var.h:197
LEX_CSTRING name
Definition: set_var.h:109
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81

Function Documentation

◆ comp_sys_var_init_psi_keys()

void comp_sys_var_init_psi_keys ( void  )

◆ get_variable_value()

const char * get_variable_value ( sys_var system_var,
char *  val_buf,
size_t *  val_length 
)

◆ mysql_add_sysvar()

int mysql_add_sysvar ( sys_var var)

◆ mysql_comp_sys_var_services_init()

void mysql_comp_sys_var_services_init ( )

Variable Documentation

◆ comp_sys_var_memory

PSI_memory_info comp_sys_var_memory[]
static
Initial value:
"component_system_variables",
#define PSI_DOCUMENT_ME
Definition: component_common.h:29
PSI_memory_key key_memory_comp_sys_var
Definition: component_sys_var_service.cc:79

◆ key_memory_comp_sys_var

PSI_memory_key key_memory_comp_sys_var