MySQL  8.0.22
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 "m_ctype.h"
#include "m_string.h"
#include "map_helpers.h"
#include "my_compiler.h"
#include "my_getopt.h"
#include "my_inttypes.h"
#include "my_loglevel.h"
#include "my_macros.h"
#include "my_psi_config.h"
#include "my_sys.h"
#include "mysql/components/service_implementation.h"
#include "mysql/components/services/component_sys_var_service.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/components/services/psi_memory_bits.h"
#include "mysql/components/services/system_variable_source_type.h"
#include "mysql/psi/mysql_memory.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/psi/mysql_rwlock.h"
#include "mysql/psi/psi_base.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/status_var.h"
#include "mysql/udf_registration_types.h"
#include "mysqld_error.h"
#include "sql/current_thd.h"
#include "sql/log.h"
#include "sql/mysqld.h"
#include "sql/persisted_variable.h"
#include "sql/set_var.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"

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 *first)
 
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);
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
Definition: sql_plugin_var.h:195

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 first)

◆ 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",
PSI_memory_key key_memory_comp_sys_var
Definition: component_sys_var_service.cc:72
#define PSI_DOCUMENT_ME
Definition: component_common.h:28

◆ key_memory_comp_sys_var

PSI_memory_key key_memory_comp_sys_var