1#ifndef SET_VAR_INCLUDED
2#define SET_VAR_INCLUDED
71template <
class Key,
class Value>
197 int flag_args, ptrdiff_t off,
int getopt_id,
202 const char *substitute,
int parse_flag,
203 sys_var *persisted_alias =
nullptr,
204 bool is_persisted_deprecated =
false);
221 std::string_view keycache_name);
223 std::string_view keycache_name);
318 switch (query_type) {
342 (array->push_back(
option),
false);
374 if (dst ==
string)
return false;
375 const size_t string_length = strlen(
string);
376 const size_t length = std::min(sizeof_dst - 1, string_length);
377 memcpy(dst,
string,
length);
379 return length < string_length;
402 std::string_view keycache_name);
404 std::string_view keycache_name);
594 std::string_view variable_name);
627 std::string_view suffix);
687 : std::string_view{};
824 template <
typename T>
840 force_sensitive_variable_access,
841 is_already_locked, is_single_thread)
843 : std::optional<T>{
result};
848 return m_cache.value().m_cached_show_type;
853 return m_cache.value().m_cached_is_sensitive;
858 return m_cache.value().m_cached_is_applied_as_command_line;
869 bool strict,
Array *output);
1054 char *current_password_arg,
bool retain_current,
1115 const char *variable_base,
const char *variable_name,
1116 std::vector<std::pair<std::string, std::string>> &attributes);
1118 const char *variable_name,
1119 const char *attribute_name,
1120 std::string &value);
1122 const char *variable_name,
1123 const char *attribute_name,
1124 const char *attribute_value);
1126 const char *attribute_name,
1127 const char *attribute_value);
1158#define PERSIST_ONLY_ADMIN_X509_SUBJECT "persist_only_admin_x509_subject"
1159#define PERSISTED_GLOBALS_LOAD "persisted_globals_load"
This class is used to implement operations like SET @variable or @variable:= expression.
Definition: item_func.h:3298
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:930
Definition: sql_list.h:494
wrapper to hide a mutex and an rwlock under a common interface
Definition: sys_vars_shared.h:52
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
A sys_var that is an alias for another sys_var.
Definition: sys_vars.h:354
Wrapper interface for all kinds of system variables.
Definition: set_var.h:580
Lifetime lifetime() const
Definition: set_var.h:640
System_variable_tracker(Static, sys_var *var)
Definition: set_var.cc:637
static thread_local int m_hash_lock_recursion_depth
A non-zero value suppresses LOCK_system_variables_hash guards in System_variable_tracker::access_syst...
Definition: set_var.h:916
sys_var * get_stable_var() const
Definition: set_var.h:879
char m_keycache_var_name[NAME_LEN+sizeof(".key_cache_division_limit")]
A dot-separated key cache name or, for a reduced form of key cache variable names,...
Definition: set_var.h:927
sys_var * m_static_var
Definition: set_var.h:920
std::string_view get_keycache_name() const
Definition: set_var.h:684
Lifetime m_tag
Definition: set_var.h:903
void operator=(System_variable_tracker &&)
Definition: set_var.cc:744
SHOW_TYPE cached_show_type() const
Definition: set_var.h:846
static bool enumerate_sys_vars_in_hash(collation_unordered_map< std::string, sys_var * > *hash, enum enum_var_type query_scope, bool strict, System_variable_tracker::Array *output)
Definition: set_var.cc:1032
struct System_variable_tracker::@166::@170 m_plugin
static System_variable_tracker make_tracker(std::string_view prefix, std::string_view suffix)
Static "constructor".
Definition: set_var.cc:853
sys_var * m_plugin_var_cache
Definition: set_var.h:935
sys_var * m_component_var_cache
Definition: set_var.h:941
Lifetime
Definition: set_var.h:597
@ KEYCACHE
for MyISAM Multiple Key Cache variables
Definition: set_var.h:599
@ PLUGIN
for plugin-registered system variables
Definition: set_var.h:600
@ STATIC
for regular static variables
Definition: set_var.h:598
@ COMPONENT
for component-registered variables
Definition: set_var.h:601
struct System_variable_tracker::@166::@169 m_keycache
bool eq_static_sys_var(const sys_var *var) const
Definition: set_var.h:663
bool visit_component_variable(THD *, std::function< bool(sys_var *)>, Suppress_not_found_error, Is_already_locked, Is_single_thread) const
Definition: set_var.cc:1245
bool access_system_variable(THD *thd, std::function< void(const System_variable_tracker &, sys_var *)> function={}, Suppress_not_found_error suppress_not_found_error=Suppress_not_found_error::NO, Force_sensitive_system_variable_access force_sensitive_variable_access=Force_sensitive_system_variable_access::NO, Is_already_locked is_already_locked=Is_already_locked::NO, Is_single_thread is_single_thread=Is_single_thread::NO) const
Definition: set_var.cc:765
static bool enumerate_sys_vars(bool sort, enum enum_var_type type, bool strict, Array *output)
Constructs an array of system variables for display to the user.
Definition: set_var.cc:1115
void cache_metadata(THD *thd, sys_var *v) const
Definition: set_var.cc:1288
std::optional< Cache > m_cache
Definition: set_var.h:910
char m_plugin_var_name[NAME_LEN+1]
A "_"-separated plugin-registered variables name.
Definition: set_var.h:934
Prealloced_array< System_variable_tracker, SYSTEM_VARIABLE_PREALLOC > Array
Definition: set_var.h:865
struct System_variable_tracker::@166::@171 m_component
const char * get_var_name() const
Definition: set_var.cc:751
~System_variable_tracker()
Definition: set_var.cc:727
bool is_hint_updateable() const
Definition: set_var.h:694
sys_var * m_keycache_var
Definition: set_var.h:929
bool cached_is_sensitive() const
Definition: set_var.h:851
bool is_keycache_var() const
Definition: set_var.h:661
size_t m_keycache_name_size
Definition: set_var.h:928
bool cached_is_applied_as_command_line() const
Definition: set_var.h:856
bool operator==(const System_variable_tracker &x) const
Definition: set_var.h:642
struct System_variable_tracker::@166::@168 m_static
static bool names_are_same(const char *, const char *)
Definition: set_var.cc:849
char m_component_var_name[NAME_LEN+sizeof('.')+NAME_LEN+1]
A dot-separated component-registered variable name.
Definition: set_var.h:940
friend Array
Definition: set_var.h:866
std::optional< T > access_system_variable(THD *thd, std::function< T(const System_variable_tracker &, sys_var *)> function, Suppress_not_found_error suppress_not_found_error=Suppress_not_found_error::NO, Force_sensitive_system_variable_access force_sensitive_variable_access=Force_sensitive_system_variable_access::NO, Is_already_locked is_already_locked=Is_already_locked::NO, Is_single_thread is_single_thread=Is_single_thread::NO) const
Safely pass a sys_var object to a function.
Definition: set_var.h:825
bool visit_plugin_variable(THD *, std::function< bool(sys_var *)>, Suppress_not_found_error, Is_already_locked, Is_single_thread) const
Definition: set_var.cc:1142
static constexpr size_t SYSTEM_VARIABLE_PREALLOC
Number of system variable elements to preallocate.
Definition: set_var.h:862
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:49
std::unordered_map, but with my_malloc and collation-aware comparison.
Definition: map_helpers.h:219
A base class for everything that can be set with SET command.
Definition: set_var.h:955
virtual ~set_var_base()=default
virtual int check(THD *thd)=0
Evaluate the expression.
virtual int light_check(THD *thd)
Used only by prepared statements to resolve and check.
Definition: set_var.h:974
virtual bool is_sensitive() const
Used to identify if variable is sensitive or not.
Definition: set_var.h:977
virtual void cleanup()
Definition: set_var.h:968
virtual int resolve(THD *thd)=0
Check privileges & fix_fields.
virtual bool print(const THD *thd, String *str)=0
To self-print.
virtual int update(THD *thd)=0
Set the value.
virtual bool is_var_optimizer_trace() const
Definition: set_var.h:967
Definition: set_var.h:1069
set_cs_flags_enum
Definition: set_var.h:1076
@ SET_CS_DEFAULT
Definition: set_var.h:1078
@ SET_CS_NAMES
Definition: set_var.h:1077
@ SET_CS_COLLATE
Definition: set_var.h:1079
const CHARSET_INFO * character_set_client
Definition: set_var.h:1071
const CHARSET_INFO * character_set_results
Definition: set_var.h:1072
const CHARSET_INFO * collation_connection
Definition: set_var.h:1073
set_var_collation_client(int set_cs_flags_arg, const CHARSET_INFO *client_coll_arg, const CHARSET_INFO *connection_coll_arg, const CHARSET_INFO *result_coll_arg)
Definition: set_var.h:1081
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:2123
int update(THD *thd) override
Set the value.
Definition: set_var.cc:2095
int set_cs_flags
Definition: set_var.h:1070
int resolve(THD *) override
Check privileges & fix_fields.
Definition: set_var.h:1089
int check(THD *thd) override
Evaluate the expression.
Definition: set_var.cc:2085
Definition: set_var.h:1044
LEX_USER * user
Definition: set_var.h:1045
char * str_generated_password
Definition: set_var.h:1050
int check(THD *thd) override
Check the validity of the SET PASSWORD request.
Definition: set_var.cc:2028
set_var_password(LEX_USER *user_arg, char *password_arg, char *current_password_arg, bool retain_current, bool generate_password)
Definition: set_var.cc:1998
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:2060
bool retain_current_password
Definition: set_var.h:1048
bool has_generated_password(void)
Definition: set_var.h:1058
int resolve(THD *) override
Check privileges & fix_fields.
Definition: set_var.h:1060
const LEX_USER * get_user(void)
Definition: set_var.h:1057
const char * get_generated_password(void)
Definition: set_var.h:1059
char * password
Definition: set_var.h:1046
int update(THD *thd) override
Set the value.
Definition: set_var.cc:2036
bool generate_password
Definition: set_var.h:1049
~set_var_password() override
Definition: set_var.cc:2014
const char * current_password
Definition: set_var.h:1047
Definition: set_var.h:1032
int check(THD *thd) override
Evaluate the expression.
Definition: set_var.cc:1948
int update(THD *thd) override
Set the value.
Definition: set_var.cc:1976
set_var_user(Item_func_set_user_var *item)
Definition: set_var.h:1036
int resolve(THD *thd) override
Check privileges & fix_fields.
Definition: set_var.cc:1939
Item_func_set_user_var * user_var_item
Definition: set_var.h:1033
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:1989
int light_check(THD *thd) override
Check variable, but without assigning value (used by PS).
Definition: set_var.cc:1968
set_var_base descendant for assignments to the system variables.
Definition: set_var.h:983
ulonglong ulonglong_value
for all integer, set, enum sysvars
Definition: set_var.h:989
int resolve(THD *thd) override
Resolve the variable assignment.
Definition: set_var.cc:1658
set_var(enum_var_type type_arg, const System_variable_tracker &var_arg, Item *value_arg)
Definition: set_var.h:1001
int update(THD *thd) override
Update variable.
Definition: set_var.cc:1855
const enum_var_type type
Definition: set_var.h:986
const System_variable_tracker m_var_tracker
Definition: set_var.h:998
void update_source_user_host_timestamp(THD *thd, sys_var *var)
Update variable source, user, host and timestamp values.
Definition: set_var.cc:1836
bool is_global_persist()
Definition: set_var.h:1017
union set_var::@172 save_result
Resolver of the variable at the left hand side of the assignment.
Time_zone * time_zone
for Sys_var_tz
Definition: set_var.h:992
int light_check(THD *thd) override
Check variable, but without assigning value (used by PS).
Definition: set_var.cc:1785
Item * value
the expression that provides the new value of the variable
Definition: set_var.h:985
int check(THD *thd) override
Verify that the supplied value is correct.
Definition: set_var.cc:1741
LEX_STRING string_value
for Sys_var_charptr and others
Definition: set_var.h:993
bool is_sensitive() const override
Check if system variable is of type SENSITIVE.
Definition: set_var.cc:1931
bool print(const THD *, String *str) override
Self-print assignment.
Definition: set_var.cc:1904
bool is_var_optimizer_trace() const override
Definition: set_var.h:1021
plugin_ref plugin
for Sys_var_plugin
Definition: set_var.h:991
void print_short(const THD *thd, String *str)
Print variable in short form.
Definition: set_var.cc:1883
const void * ptr
for Sys_var_struct
Definition: set_var.h:994
double double_value
for Sys_var_double
Definition: set_var.h:990
Definition: sql_plugin_var.h:219
A class representing one system variable - that is something that can be accessed as @global....
Definition: set_var.h:107
static const int PARSE_EARLY
Definition: set_var.h:155
virtual bool global_update(THD *thd, set_var *var)=0
bool is_hint_updateable() const
Check if the variable can be set using SET_VAR hint.
Definition: set_var.h:293
virtual bool set_source_name(const char *path)
Definition: set_var.h:243
my_option option
min, max, default values are stored here
Definition: set_var.h:178
my_option * get_option()
Definition: set_var.h:257
bool(* on_update_function)(sys_var *self, THD *thd, enum_var_type type)
Definition: set_var.h:172
virtual void session_save_default(THD *thd, set_var *var)=0
save the session default value of the variable in var
LEX_CSTRING name
Definition: set_var.h:110
virtual void set_arg_source(get_opt_arg_source *)
Definition: set_var.h:236
sys_var * next
Definition: set_var.h:109
char host[HOSTNAME_LENGTH+1]
Definition: set_var.h:192
virtual const char * get_host()
Definition: set_var.h:251
virtual ulonglong get_max_value()
Definition: set_var.h:229
virtual void set_user_host(THD *thd)
Definition: set_var.cc:458
uchar * global_var_ptr()
Definition: set_var.cc:405
bool m_is_persisted_deprecated
If m_persist_alias is set, and the current variable is deprecated and m_persist_alias is the recommen...
Definition: set_var.h:127
bool is_sensitive() const
Definition: set_var.h:285
bool check(THD *thd, set_var *var)
Definition: set_var.cc:409
enum sys_var::binlog_status_enum binlog_status
Global system variable attributes.
uchar * session_var_ptr(THD *thd)
A pointer to a storage area of the variable, to the raw data.
Definition: set_var.cc:401
void save_default(THD *thd, set_var *var)
Definition: set_var.h:355
bool register_option(std::vector< my_option > *array, int parse_flags)
Definition: set_var.h:340
flag_enum
Definition: set_var.h:128
@ SESSION
Definition: set_var.h:130
@ GLOBAL
Definition: set_var.h:129
@ INVISIBLE
Definition: set_var.h:135
@ SENSITIVE
Sensitive variable.
Definition: set_var.h:153
@ READONLY
Definition: set_var.h:133
@ SCOPE_MASK
Definition: set_var.h:132
@ ALLOCATED
Definition: set_var.h:134
@ NOTPERSIST
Definition: set_var.h:137
@ TRI_LEVEL
Definition: set_var.h:136
@ PERSIST_AS_READ_ONLY
There can be some variables which needs to be set before plugin is loaded.
Definition: set_var.h:148
@ HINT_UPDATEABLE
Definition: set_var.h:138
@ ONLY_SESSION
Definition: set_var.h:131
virtual bool do_check(THD *thd, set_var *var)=0
sys_var * m_persisted_alias
If the variable has an alias in the persisted variables file, this should point to it.
Definition: set_var.h:119
bool is_global_persist(enum_var_type type)
Definition: set_var.h:330
virtual bool check_update_type(Item_result type)=0
virtual void set_timestamp(ulonglong ts)
Definition: set_var.h:259
const uchar * value_ptr(THD *running_thd, THD *target_thd, enum_var_type type, std::string_view keycache_name)
Definition: set_var.cc:431
virtual const char * get_user()
Definition: set_var.h:250
virtual void cleanup()
All the cleanup procedures should be performed here.
Definition: set_var.h:212
virtual longlong get_min_value()
Definition: set_var.h:228
virtual ~sys_var()=default
virtual void set_is_plugin(bool)
Definition: set_var.h:237
binlog_status_enum
Enumeration type to indicate for a system variable whether it will be written to the binlog or not.
Definition: set_var.h:161
@ SESSION_VARIABLE_IN_BINLOG
Definition: set_var.h:163
@ VARIABLE_NOT_IN_BINLOG
Definition: set_var.h:162
virtual void saved_value_to_string(THD *thd, set_var *var, char *def_val)=0
This function converts value stored in save_result to string.
bool is_os_charset
true if the value is in character_set_filesystem
Definition: set_var.h:189
bool is_parse_early() const
Definition: set_var.h:284
ptrdiff_t offset
offset to the value from global_system_variables
Definition: set_var.h:180
virtual bool set_user(const char *usr)
Definition: set_var.h:247
bool check_scope(enum_var_type query_type)
Return true for success if: Global query and variable scope is GLOBAL or SESSION, or Session query an...
Definition: set_var.h:317
bool(* on_check_function)(sys_var *self, THD *thd, set_var *var)
Definition: set_var.h:170
virtual enum_variable_source get_source()
Definition: set_var.h:238
SHOW_TYPE show_type()
Definition: set_var.h:277
virtual void global_save_default(THD *thd, set_var *var)=0
save the global default value of the variable in var
virtual const uchar * global_value_ptr(THD *thd, std::string_view keycache_name)
Definition: set_var.cc:397
const char * get_deprecation_substitute()
Definition: set_var.h:208
on_check_function on_check
Definition: set_var.h:181
const CHARSET_INFO * charset(THD *thd)
Definition: set_var.cc:593
virtual ulong get_var_type()
Returns variable type.
Definition: set_var.h:235
bool is_struct()
the following is only true for keycache variables, that support the syntax @keycache_name....
Definition: set_var.h:298
virtual const char * get_source_name()
Definition: set_var.h:239
bool set_default(THD *thd, set_var *var)
Update the system variable with the default value from either session or global scope.
Definition: set_var.cc:447
pre_update_function pre_update
Pointer to function to be invoked before updating system variable (but after calling on_check hook),...
Definition: set_var.h:186
bool is_trilevel() const
Definition: set_var.h:282
std::map< std::string, std::string > m_global_attributes
Definition: set_var.h:167
bool is_persist_readonly() const
Definition: set_var.h:283
void do_deprecated_warning(THD *thd)
Definition: set_var.cc:481
int scope() const
Definition: set_var.h:278
struct get_opt_arg_source source
Definition: set_var.h:190
virtual void set_timestamp()
Definition: set_var.h:258
const SHOW_TYPE show_val_type
what value_ptr() returns for sql_show.cc
Definition: set_var.h:177
on_update_function on_update
Definition: set_var.h:187
int flags
or'ed flag_enum values
Definition: set_var.h:175
static const int PARSE_NORMAL
Definition: set_var.h:156
bool update(THD *thd, set_var *var)
Definition: set_var.cc:341
char user[USERNAME_CHAR_LENGTH+1]
Definition: set_var.h:191
bool is_written_to_binlog(enum_var_type type)
Definition: set_var.h:307
virtual const uchar * session_value_ptr(THD *running_thd, THD *target_thd, std::string_view keycache_name)
A pointer to a value of the variable for SHOW.
Definition: set_var.cc:392
bool check_if_sensitive_in_context(THD *, bool suppress_errors=true) const
Definition: set_var.cc:1367
virtual void update_default(longlong new_def_value)
Definition: set_var.h:224
virtual bool set_host(const char *hst)
Definition: set_var.h:252
bool not_visible() const
Definition: set_var.h:281
bool is_settable_at_command_line()
Return true if settable at the command line.
Definition: set_var.h:338
PolyLock * guard
second lock that protects the variable
Definition: set_var.h:179
virtual longlong get_default()
Definition: set_var.h:227
virtual bool is_non_persistent()
Definition: set_var.h:260
virtual sys_var_pluginvar * cast_pluginvar()
downcast for sys_var_pluginvar.
Definition: set_var.h:217
Item * copy_value(THD *thd)
Create item from system variable value.
Definition: set_var.cc:502
const char *const deprecation_substitute
Definition: set_var.h:188
virtual ulonglong get_timestamp() const
Definition: set_var.h:255
static bool set_and_truncate(char *dst, const char *string, size_t sizeof_dst)
Like strncpy, but ensures the destination is '\0'-terminated.
Definition: set_var.h:372
bool(* pre_update_function)(sys_var *self, THD *thd, set_var *var)
Definition: set_var.h:171
bool is_readonly() const
Definition: set_var.h:280
virtual bool session_update(THD *thd, set_var *var)=0
int m_parse_flag
either PARSE_EARLY or PARSE_NORMAL.
Definition: set_var.h:176
ulonglong timestamp
Definition: set_var.h:193
sys_var(sys_var_chain *chain, const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, int getopt_id, enum get_opt_arg_type getopt_arg_type, SHOW_TYPE show_val_type_arg, longlong def_val, PolyLock *lock, enum binlog_status_enum binlog_status_arg, on_check_function on_check_func, on_update_function on_update_func, const char *substitute, int parse_flag, sys_var *persisted_alias=nullptr, bool is_persisted_deprecated=false)
sys_var constructor
Definition: set_var.cc:272
virtual void set_source(enum_variable_source src)
Definition: set_var.h:240
uint64_t sql_mode_t
Definition: dd_event.h:39
#define comment
Definition: lexyy.cc:959
static int opened
Definition: log_filter_dragnet.cc:124
A better implementation of the UNIX ctype(3) library.
void my_abort()
Calls our own implementation of abort, if specified, or std's abort().
Definition: my_init.cc:261
get_opt_arg_type
Enumeration of the my_option::arg_type attributes.
Definition: my_getopt.h:81
#define GET_TYPE_MASK
Definition: my_getopt.h:72
#define GET_ASK_ADDR
Definition: my_getopt.h:71
Common definition used by mysys, performance schema and server & client.
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:43
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
Common header for many mysys elements.
Defines for getting and processing the current system type programmatically.
unsigned long long int my_micro_time()
Return time in microseconds.
Definition: my_systime.h:182
Common definition between mysql server & client.
#define NAME_LEN
Definition: mysql_com.h:67
#define USERNAME_CHAR_LENGTH
Definition: mysql_com.h:64
static char * path
Definition: mysqldump.cc:149
static const char * sql_mode
Definition: mysqlslap.cc:199
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:79
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2876
struct result result
Definition: result.h:34
repeated Source source
Definition: replication_asynchronous_connection_failover.proto:42
required string type
Definition: replication_group_member_actions.proto:34
ulonglong dynamic_system_variable_hash_version
Definition: set_var.cc:93
int sys_var_init()
Definition: set_var.cc:144
sys_var * Sys_gtid_purged_ptr
Definition: sys_vars.cc:6572
bool get_global_variable_attributes(const char *variable_base, const char *variable_name, std::vector< std::pair< std::string, std::string > > &attributes)
Definition: set_var.cc:2140
enum enum_mysql_show_type SHOW_TYPE
Definition: set_var.h:75
SHOW_COMP_OPTION have_rtree_keys
Definition: set_var.h:1100
char * sys_var_persist_only_admin_x509_subject
global X509 subject name to require from the client session to allow SET PERSIST[_ONLY] on sys_var::N...
Definition: set_var.cc:1587
Force_sensitive_system_variable_access
Definition: set_var.h:420
collation_unordered_map< std::string, sys_var * > * get_dynamic_system_variable_hash(void)
Definition: set_var.cc:99
collation_unordered_map< std::string, sys_var * > * get_static_system_variable_hash(void)
Definition: set_var.cc:95
SHOW_COMP_OPTION have_profiling
Definition: mysqld.cc:1564
bool fix_delay_key_write(sys_var *self, THD *thd, enum_var_type type)
Definition: sys_vars.cc:2053
bool get_sysvar_source(const char *name, uint length, enum enum_variable_source *source)
Get source of a given system variable given its name and name length.
Definition: set_var.cc:111
enum enum_mysql_show_scope SHOW_SCOPE
Definition: set_var.h:76
Is_single_thread
Definition: set_var.h:424
SHOW_COMP_OPTION have_compress
Definition: mysqld.cc:1563
sys_var * Sys_gtid_next_ptr
Definition: sys_vars.cc:6461
bool get_global_variable_attribute(const char *variable_base, const char *variable_name, const char *attribute_name, std::string &value)
Definition: set_var.cc:2168
ulong get_system_variable_count(void)
Definition: set_var.cc:1019
SHOW_COMP_OPTION have_symlink
Definition: mysqld.cc:1561
SHOW_COMP_OPTION have_statement_timeout
Definition: mysqld.cc:1565
bool add_static_system_variable_chain(sys_var *chain)
Add variables to the hash of static system variables.
Definition: set_var.cc:982
bool sql_mode_string_representation(THD *thd, sql_mode_t sql_mode, LEX_STRING *ls)
Definition: sys_vars.cc:4782
bool add_dynamic_system_variable_chain(sys_var *chain)
Add variables to the dynamic hash of system variables.
Definition: set_var.cc:956
Is_already_locked
Definition: set_var.h:422
void delete_dynamic_system_variable_chain(sys_var *chain)
Remove variables from the dynamic hash of system variables.
Definition: set_var.cc:1007
bool keyring_access_test()
This function is used to check if key management UDFs like keying_key_generate/store/remove should pr...
Definition: set_var.cc:1569
SHOW_COMP_OPTION have_geometry
Definition: mysqld.cc:1562
bool sql_mode_quoted_string_representation(THD *thd, sql_mode_t sql_mode, LEX_STRING *ls)
Definition: sys_vars.cc:4787
bool set_global_variable_attribute(const char *variable_base, const char *variable_name, const char *attribute_name, const char *attribute_value)
Definition: set_var.cc:2199
sys_var * Sys_autocommit_ptr
Definition: sys_vars.cc:5282
int sql_set_variables(THD *thd, List< set_var_base > *var_list, bool opened)
Execute update of all variables.
Definition: set_var.cc:1419
Suppress_not_found_error
Definition: set_var.h:418
ulonglong get_dynamic_system_variable_hash_version(void)
Definition: set_var.cc:1028
TYPELIB bool_typelib
Definition: sys_vars.cc:221
void sys_var_end(void)
Definition: set_var.cc:183
const CHARSET_INFO * get_old_charset_by_name(const char *old_name)
Definition: set_var.cc:930
int sys_var_add_options(std::vector< my_option > *long_options, int parse_flags)
Definition: set_var.cc:169
enum_var_type
Definition: set_var.h:92
@ OPT_PERSIST_ONLY
Definition: set_var.h:97
@ OPT_PERSIST
Definition: set_var.h:96
@ OPT_GLOBAL
Definition: set_var.h:95
@ OPT_DEFAULT
Definition: set_var.h:93
@ OPT_SESSION
Definition: set_var.h:94
sql_mode_t expand_sql_mode(sql_mode_t sql_mode, THD *thd)
Definition: sys_vars.cc:4674
bool check_priv(THD *thd, bool static_variable)
This function will check for necessary privileges needed to perform RESET PERSIST or SET PERSIST[_ONL...
Definition: set_var.cc:207
SHOW_COMP_OPTION have_query_cache
Definition: mysqld.cc:1561
SHOW_COMP_OPTION have_dlopen
Definition: set_var.h:1098
sys_var * Sys_gtid_next_list_ptr
File containing constants that can be used throughout the server.
SHOW_COMP_OPTION
Definition: sql_const.h:230
case opt name
Definition: sslopt-case.h:29
enum_mysql_show_type
Declarations for SHOW STATUS support in plugins.
Definition: status_var.h:30
enum_mysql_show_scope
Status variable scope.
Definition: status_var.h:68
Definition: m_ctype.h:421
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Definition: set_var.h:905
bool m_cached_is_applied_as_command_line
Definition: set_var.h:908
bool m_cached_is_sensitive
Definition: set_var.h:907
SHOW_TYPE m_cached_show_type
Definition: set_var.h:906
Definition: set_var.h:584
Definition: set_var.h:582
Definition: set_var.h:583
Definition: set_var.h:581
Definition: my_getopt.h:83
char m_path_name[FN_REFLEN]
config file path OR compiled default values
Definition: my_getopt.h:87
enum enum_variable_source m_source
Definition: my_getopt.h:88
Definition: my_getopt.h:93
longlong min_value
Min allowed value (for numbers)
Definition: my_getopt.h:123
ulonglong max_value
Max allowed value (for numbers)
Definition: my_getopt.h:124
longlong def_value
Default value.
Definition: my_getopt.h:122
ulong var_type
GET_BOOL, GET_ULL, etc.
Definition: my_getopt.h:120
int id
For 0<id<=255 it's means one character for a short option (like -A), if >255 no short option is creat...
Definition: my_getopt.h:98
struct get_opt_arg_source * arg_source
Represents source/path from where this variable is set.
Definition: my_getopt.h:125
Definition: sql_plugin_ref.h:45
sys_var * first
Definition: set_var.h:83
sys_var * last
Definition: set_var.h:84
export sys_var * Sys_optimizer_trace_ptr
Definition: sys_vars.cc:3373
enum_variable_source
This enum values define how system variables are set.
Definition: system_variable_source_type.h:33
Item_result
Type of the user defined function return slot and arguments.
Definition: udf_registration_types.h:39