![]() |
MySQL 8.0.40
Source Code Documentation
|
"private" interface to sys_var - server configuration variables. More...
#include "my_config.h"
#include <sys/types.h>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <string>
#include <string_view>
#include "keycache.h"
#include "lex_string.h"
#include "m_ctype.h"
#include "my_base.h"
#include "my_bit.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_getopt.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/plugin.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/status_var.h"
#include "mysql/udf_registration_types.h"
#include "mysqld_error.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/debug_sync.h"
#include "sql/handler.h"
#include "sql/item.h"
#include "sql/keycaches.h"
#include "sql/mysqld.h"
#include "sql/rpl_gtid.h"
#include "sql/set_var.h"
#include "sql/sql_class.h"
#include "sql/sql_connect.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/sql_plugin.h"
#include "sql/sql_plugin_ref.h"
#include "sql/strfunc.h"
#include "sql/sys_vars_resource_mgr.h"
#include "sql/sys_vars_shared.h"
#include "sql/tztime.h"
#include "sql_string.h"
#include "typelib.h"
Go to the source code of this file.
Classes | |
struct | CMD_LINE |
A small wrapper class to pass getopt arguments as a pair to the Sys_var_* constructors. More... | |
class | Sys_var_integer< T, ARGT, SHOWT, SIGNED > |
Sys_var_integer template is used to generate Sys_var_* classes for variables that represent the value as a signed or unsigned integer. More... | |
class | Sys_var_alias |
A sys_var that is an alias for another sys_var. More... | |
class | Sys_var_deprecated_alias |
A deprecated alias for a variable. More... | |
class | Sys_var_typelib |
Helper class for variables that take values from a TYPELIB. More... | |
class | Sys_var_enum |
The class for ENUM variables - variables that take one value from a fixed list of values. More... | |
class | Sys_var_bool |
The class for boolean variables - a variant of ENUM variables with the fixed list of values of { OFF , ON }. More... | |
class | Sys_var_multi_enum |
A variant of enum where: More... | |
struct | Sys_var_multi_enum::ALIAS |
class | Sys_var_charptr |
The class for string variables. More... | |
class | Sys_var_version |
class | Sys_var_proxy_user |
class | Sys_var_external_user |
class | Sys_var_lexstring |
The class for string variables. More... | |
class | Sys_var_dbug |
@session.dbug and @global.dbug variables. More... | |
class | Sys_var_keycache |
The class for keycache_* variables. More... | |
class | Sys_var_double |
The class for floating point variables. More... | |
class | Sys_var_test_flag |
The class for test_flags (core_file for now). More... | |
class | Sys_var_max_user_conn |
The class for the max_user_connections . More... | |
class | Sys_var_flagset |
The class for flagset variables - a variant of SET that allows in-place editing (turning on/off individual bits). More... | |
class | Sys_var_set |
The class for SET variables - variables taking zero or more values from the given list. More... | |
class | Sys_var_plugin |
The class for variables which value is a plugin. More... | |
class | Sys_var_bit |
The class for bit variables - a variant of boolean that stores the value in a bit. More... | |
class | Sys_var_session_special |
The class for variables that have a special meaning for a session, such as @timestamp or @rnd_seed1, their values typically cannot be read from SV structure, and a special "read" callback is provided. More... | |
class | Sys_var_session_special_double |
Similar to Sys_var_session_special, but with double storage. More... | |
class | Sys_var_have |
The class for read-only variables that show whether a particular feature is supported by the server. More... | |
class | Sys_var_have_func |
A subclass of Sys_var_have to return dynamic values. More... | |
class | Sys_var_struct< Struct_type, Name_getter > |
Generic class for variables for storing entities that are internally represented as structures, have names, and possibly can be referred to by numbers. More... | |
class | Sys_var_tz |
The class for variables that store time zones. More... | |
class | Sys_var_transaction_isolation |
Class representing the 'transaction_isolation' system variable. More... | |
class | Sys_var_transaction_read_only |
Class representing the tx_read_only system variable for setting default transaction access mode. More... | |
class | Sys_var_enum_binlog_checksum |
A class for @global.binlog_checksum that has a specialized update method. More... | |
class | Sys_var_gtid_next |
Class for gtid_next. More... | |
class | Sys_var_charptr_func |
Abstract base class for read-only variables (global or session) of string type where the value is generated by some function. More... | |
class | Sys_var_gtid_executed |
Class for @global.gtid_executed. More... | |
class | Sys_var_system_time_zone |
Class for @global.system_time_zone. More... | |
class | Sys_var_gtid_purged |
Class for @session.gtid_purged. More... | |
class | Sys_var_gtid_owned |
class | Sys_var_gtid_mode |
class | Sys_var_enforce_gtid_consistency |
class | Sys_var_binlog_encryption |
Typedefs | |
typedef Sys_var_integer< int32, GET_UINT, SHOW_INT, false > | Sys_var_int32 |
typedef Sys_var_integer< uint, GET_UINT, SHOW_INT, false > | Sys_var_uint |
typedef Sys_var_integer< ulong, GET_ULONG, SHOW_LONG, false > | Sys_var_ulong |
typedef Sys_var_integer< ha_rows, GET_HA_ROWS, SHOW_HA_ROWS, false > | Sys_var_harows |
typedef Sys_var_integer< ulonglong, GET_ULL, SHOW_LONGLONG, false > | Sys_var_ulonglong |
typedef Sys_var_integer< long, GET_LONG, SHOW_SIGNED_LONG, true > | Sys_var_long |
typedef bool(* | keycache_update_function) (THD *, KEY_CACHE *, ptrdiff_t, ulonglong) |
Enumerations | |
enum | charset_enum { IN_SYSTEM_CHARSET , IN_FS_CHARSET } |
Functions | |
const char * | fixup_enforce_gtid_consistency_command_line (char *value_arg) |
void | update_parser_max_mem_size () |
void | update_optimizer_switch () |
Variables | |
constexpr const unsigned long | TABLE_OPEN_CACHE_DEFAULT {4000} |
constexpr const unsigned long | TABLE_DEF_CACHE_DEFAULT {400} |
constexpr const unsigned long | MAX_CONNECTIONS_DEFAULT {151} |
Maximum number of connections default value. More... | |
sys_var_chain | all_sys_vars |
static const char * | bool_values [3] = {"OFF", "ON", nullptr} |
"private" interface to sys_var - server configuration variables.
This header is included only by the file that contains declarations of sys_var variables (sys_vars.cc).
#define GET_HA_ROWS GET_ULL |
#define global_var | ( | TYPE | ) | (*(TYPE *)global_var_ptr()) |
#define HINT_UPDATEABLE sys_var::HINT_UPDATEABLE + |
#define IN_BINLOG sys_var::SESSION_VARIABLE_IN_BINLOG |
#define keycache_var | ( | KC, | |
OFF | |||
) | (*(ulonglong *)keycache_var_ptr(KC, OFF)) |
#define keycache_var_ptr | ( | KC, | |
OFF | |||
) | (((uchar *)(KC)) + (OFF)) |
#define NO_MUTEX_GUARD ((PolyLock *)0) |
#define NON_PERSIST sys_var::NOTPERSIST + |
#define NOT_IN_BINLOG sys_var::VARIABLE_NOT_IN_BINLOG |
#define NOT_VISIBLE sys_var::INVISIBLE + |
#define PERSIST_AS_READONLY sys_var::PERSIST_AS_READ_ONLY + |
#define PREALLOCATED sys_var::ALLOCATED + |
#define READ_ONLY sys_var::READONLY + |
#define SENSITIVE sys_var::SENSITIVE + |
#define SESSION_ONLY | ( | X | ) |
#define SESSION_VAR | ( | X | ) |
#define UNTRACKED_DEFAULT sys_var::TRI_LEVEL + |
typedef Sys_var_integer<ha_rows, GET_HA_ROWS, SHOW_HA_ROWS, false> Sys_var_harows |
typedef Sys_var_integer<int32, GET_UINT, SHOW_INT, false> Sys_var_int32 |
typedef Sys_var_integer<long, GET_LONG, SHOW_SIGNED_LONG, true> Sys_var_long |
typedef Sys_var_integer<uint, GET_UINT, SHOW_INT, false> Sys_var_uint |
typedef Sys_var_integer<ulong, GET_ULONG, SHOW_LONG, false> Sys_var_ulong |
typedef Sys_var_integer<ulonglong, GET_ULL, SHOW_LONGLONG, false> Sys_var_ulonglong |
enum charset_enum |
const char * fixup_enforce_gtid_consistency_command_line | ( | char * | value_arg | ) |
void update_optimizer_switch | ( | ) |
void update_parser_max_mem_size | ( | ) |
|
extern |
|
static |
|
constexpr |
Maximum number of connections default value.
151 is larger than Apache's default max children, to avoid "too many connections" error in a common setup.
|
constexpr |
|
constexpr |