MySQL 8.0.42
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mysqld.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2025, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQLD_INCLUDED
25#define MYSQLD_INCLUDED
26
27#include "my_config.h"
28
29#include <signal.h>
30#include <stdint.h> // int32_t
31#include <sys/types.h>
32#include <time.h>
33#include <atomic>
34#include <string>
35#include <vector>
36
39#include "lex_string.h"
40#include "m_ctype.h"
41#include "my_command.h"
42#include "my_compress.h"
43#include "my_getopt.h"
44#include "my_hostname.h" // HOSTNAME_LENGTH
45#include "my_inttypes.h"
46#include "my_io.h"
47#include "my_psi_config.h"
48#include "my_sharedlib.h"
49#include "my_sqlcommand.h" // SQLCOM_END
50#include "my_sys.h" // MY_TMPDIR
51#include "my_thread.h" // my_thread_attr_t
63#include "mysql/status_var.h"
64#include "mysql_com.h" // SERVER_VERSION_LENGTH
65#ifdef _WIN32
66#include "sql/nt_servc.h"
67#endif // _WIN32
68#include "sql/sql_bitmap.h"
69#include "sql/sql_const.h" // UUID_LENGTH
70
74class THD;
75class Time_zone;
76struct MEM_ROOT;
77struct handlerton;
78
79#if MAX_INDEXES <= 64
80typedef Bitmap<64> Key_map; /* Used for finding keys */
81#elif MAX_INDEXES > 255
82#error "MAX_INDEXES values greater than 255 is not supported."
83#else
84typedef Bitmap<((MAX_INDEXES + 7) / 8 * 8)> Key_map; /* Used for finding keys */
85#endif
86
87/* Bits from testflag */
88#define TEST_PRINT_CACHED_TABLES 1
89#define TEST_NO_KEY_GROUP 2
90#define TEST_MIT_THREAD 4
91/*
92 TEST_BLOCKING is made obsolete and is not used any
93 where in the code base and is retained here so that
94 the other bit flag values are not changed.
95*/
96#define OBSOLETE_TEST_BLOCKING 8
97#define TEST_KEEP_TMP_TABLES 16
98#define TEST_READCHECK 64 /**< Force use of readcheck */
99#define TEST_NO_EXTRA 128
100#define TEST_CORE_ON_SIGNAL 256 /**< Give core if signal */
101#define TEST_NO_STACKTRACE 512
102#define TEST_SIGINT 1024 /**< Allow sigint on threads */
103#define TEST_SYNCHRONIZATION \
104 2048 /**< get server to do sleep in \
105 some places */
106#define TEST_DO_QUICK_LEAK_CHECK \
107 4096 /**< Do Valgrind leak check for \
108 each command. */
109#define TEST_NO_TEMP_TABLES \
110 8192 /**< No temp table engine is loaded, so use dummy costs. */
111
112#define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */
113#define SPECIAL_SKIP_SHOW_DB 4 /* Don't allow 'show db' */
114#define SPECIAL_NO_RESOLVE 64 /* Don't use gethostname */
115#define SPECIAL_NO_HOST_CACHE 512 /* Don't cache hosts */
116#define SPECIAL_SHORT_LOG_FORMAT 1024
117
119
120/* Function prototypes */
121
122/**
123 Signal the server thread for restart.
124
125 @return false if the thread has been successfully signalled for restart
126 else true.
127*/
128
130void kill_mysql(void);
131void refresh_status();
133bool is_secure_file_path(const char *path);
134ulong sql_rnd_with_mutex();
135
136struct System_status_var *get_thd_status_var(THD *thd, bool *aggregated);
137
138#ifndef NDEBUG
139void thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name);
140#else
141void thd_mem_cnt_alloc(THD *thd, size_t size);
142#endif
143
144void thd_mem_cnt_free(THD *thd, size_t size);
145
146// These are needed for unit testing.
147void set_remaining_args(int argc, char **argv);
149void my_init_signals();
150bool gtid_server_init();
153
158
160 SERVER_BOOTING, /* Server is not operational. It is starting */
161 SERVER_OPERATING, /* Server is fully initialized and operating */
162 SERVER_SHUTTING_DOWN /* Server is shutting down */
165
167extern bool opt_bin_log;
168extern bool opt_log_replica_updates;
169extern bool opt_log_unsafe_statements;
174extern bool opt_log_slow_extra;
176extern bool opt_skip_name_resolve;
177extern bool opt_help;
178extern bool opt_verbose;
180extern MYSQL_PLUGIN_IMPORT std::atomic<int32>
182extern bool opt_no_dd_upgrade;
183extern long opt_upgrade_mode;
184extern long opt_check_table_funs;
185extern bool opt_initialize;
186extern bool opt_safe_user_create;
189extern ulong replica_exec_mode_options;
193extern int32_t opt_regexp_time_limit;
194extern int32_t opt_regexp_stack_limit;
195#ifdef _WIN32
196extern bool opt_no_monitor;
197#endif // _WIN32
198extern bool opt_debugging;
199extern bool opt_validate_config;
200
208
211extern bool lower_case_file_system;
212
216 SLAVE_ROWS_HASH_SCAN = (1U << 2)
220
222
223#ifndef NDEBUG
225#endif
226extern ulong mts_parallel_option;
227#ifdef _WIN32
228extern bool opt_enable_named_pipe;
229extern char *named_pipe_full_access_group;
230extern bool opt_enable_shared_memory;
231extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
232#endif
233extern bool opt_allow_suspicious_udfs;
234extern const char *opt_secure_file_priv;
240#ifdef _WIN32
241extern const char *shared_memory_base_name;
242#endif
243extern const char *mysqld_unix_port;
244extern char *default_tz_name;
245extern Time_zone *default_tz;
246extern const char *default_storage_engine;
247extern const char *default_tmp_storage_engine;
250extern bool temptable_use_mmap;
251extern bool using_udf_functions;
252extern bool locked_in_memory;
253extern bool opt_using_transactions;
254extern ulong current_pid;
255extern ulong expire_logs_days;
256extern ulong binlog_expire_logs_seconds;
261extern ulong tc_log_page_waits;
262extern bool relay_log_purge;
263extern bool relay_log_recovery;
264extern std::atomic<bool> offline_mode;
267
273extern ulong delay_key_write_options;
274
275extern ulong opt_log_timestamps;
276extern const char *timestamp_type_names[];
280extern char *default_auth_plugin;
282extern bool password_require_current;
283/*
284 @warning : The real value is in @ref partial_revokes. The @ref
285 opt_partial_revokes is just a tool to trick the Sys_var class into
286 operating on an atomic variable.
287
288 Thus : do not use or access @ref opt_partial_revokes in your code.
289 If you need the value of the flag please use the @ref partial_revokes
290 global.
291 @todo :
292 @ref opt_partial_revokes to be removed when the Sys_var classes can operate
293 safely on an atomic.
294 */
295extern bool opt_partial_revokes;
296extern char *my_bind_addr_str;
297extern char *my_admin_bind_addr_str;
300extern char glob_hostname[HOSTNAME_LENGTH + 1];
302extern char *opt_init_file;
303extern const char *opt_tc_log_file;
304extern char server_uuid[UUID_LENGTH + 1];
305extern const char *server_uuid_ptr;
306#if defined(HAVE_BUILD_ID_SUPPORT)
307extern char server_build_id[42];
308extern const char *server_build_id_ptr;
309#endif
310extern const double log_10[309];
313extern ulong aborted_threads;
314extern ulong delayed_insert_timeout;
316extern std::atomic<int32> atomic_replica_open_temp_tables;
317extern ulong slow_launch_time;
318extern ulong table_cache_size;
319extern ulong schema_def_size;
320extern ulong stored_program_def_size;
321extern ulong table_def_size;
322extern ulong tablespace_def_size;
324extern ulong max_digest_length;
327extern ulong slave_trans_retries;
331extern ulong rpl_stop_replica_timeout;
332extern bool log_bin_use_v1_row_events;
335extern ulong open_files_limit;
336extern bool clone_startup;
337extern bool clone_recovery_error;
344extern ulong replica_max_allowed_packet;
345extern ulong binlog_row_event_max_size;
346extern ulong binlog_checksum_options;
347extern ulong binlog_row_metadata;
348extern const char *binlog_checksum_type_names[];
353extern ulong binlog_error_action;
356 /// Ignore the error and let server continue without binlogging
358 /// Abort the server
359 ABORT_SERVER = 1
361extern const char *binlog_error_action_list[];
362extern char *opt_authentication_policy;
363extern std::vector<std::string> authentication_policy_list;
364
365extern ulong stored_program_cache_size;
366extern ulong back_log;
368extern time_t server_start_time;
369extern char *opt_mysql_tmpdir;
372extern const char *show_comp_option_name[];
373extern const char *first_keyword, *binary_keyword;
374extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
375extern const char *in_left_expr_name;
376extern SHOW_VAR status_vars[];
379extern struct rand_struct sql_rand;
380extern handlerton *myisam_hton;
381extern handlerton *heap_hton;
383extern handlerton *innodb_hton;
385extern ulong opt_server_id_mask;
386extern const char *load_default_groups[];
387extern struct my_option my_long_early_options[];
388extern bool mysqld_server_started;
391extern bool server_shutting_down;
393extern bool old_mode;
394extern bool avoid_temporal_upgrade;
396extern ulong connection_errors_internal;
397extern ulong connection_errors_peer_addr;
399extern char *opt_log_error_services;
401/** The size of the host_cache. */
402extern uint host_cache_size;
403extern ulong log_error_verbosity;
404
405extern bool persisted_globals_load;
406extern bool opt_keyring_operations;
408extern char *opt_keyring_migration_user;
409extern char *opt_keyring_migration_host;
414extern ulong opt_keyring_migration_port;
415
418/**
419 Variable to check if connection related options are set
420 as part of keyring migration.
421*/
422extern bool migrate_connect_options;
423
425
426extern thread_local MEM_ROOT **THR_MALLOC;
427
430
431#ifdef HAVE_PSI_INTERFACE
432
474
477
486
518
543
547
548#endif /* HAVE_PSI_INTERFACE */
549
550/*
551 MAINTAINER: Please keep this list in order, to limit merge collisions.
552 Hint: grep PSI_stage_info | sort -u
553*/
576extern PSI_stage_info
604extern PSI_stage_info
607extern PSI_stage_info
611extern PSI_stage_info
613extern PSI_stage_info
615extern PSI_stage_info
657#ifdef HAVE_PSI_STATEMENT_INTERFACE
658/**
659 Statement instrumentation keys (sql).
660 The last entry, at [SQLCOM_END], is for parsing errors.
661*/
663
664/**
665 Statement instrumentation keys (com).
666 The last entry, at [COM_END], is for packet errors.
667*/
669
670/**
671 Statement instrumentation key for replication.
672*/
674#endif /* HAVE_PSI_STATEMENT_INTERFACE */
675
676extern struct st_VioSSLFd *ssl_acceptor_fd;
677
678extern bool opt_large_pages;
680extern char lc_messages_dir[FN_REFLEN];
681extern char *lc_messages_dir_ptr;
682extern const char *log_error_dest;
686
687extern long tc_heuristic_recover;
688
689extern ulong specialflag;
690extern size_t mysql_data_home_len;
691extern const char *mysql_real_data_home_ptr;
698extern bool log_bin_supplied;
701
702#define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
703
704/*
705 Server mutex locks and condition variables.
706 */
735
739
744
745extern ulong opt_ssl_fips_mode;
746
748
749extern sigset_t mysqld_signal_mask;
750/* query_id */
752extern std::atomic<query_id_t> atomic_global_query_id;
753
754int *get_remaining_argc();
755char ***get_remaining_argv();
756
757/* increment query_id and return it. */
758[[nodiscard]] inline query_id_t next_query_id() {
759 return ++atomic_global_query_id;
760}
761
762#define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
763
764/* Accessor function for _connection_events_loop_aborted flag */
765[[nodiscard]] inline bool connection_events_loop_aborted() {
767}
768
769/* only here because of unireg_init(). */
770static inline void set_connection_events_loop_aborted(bool value) {
772}
773
774/**
775
776 Check if --help option or --validate-config is specified.
777
778 @retval false Neither 'help' or 'validate-config' option is enabled.
779 @retval true Either 'help' or 'validate-config' or both options
780 are enabled.
781*/
783 return (opt_help || opt_validate_config);
784}
785
786/**
787 Get mysqld offline mode.
788
789 @return a bool indicating the offline mode status of the server.
790*/
791inline bool mysqld_offline_mode() { return offline_mode.load(); }
792
793/**
794 Set offline mode with a given value
795
796 @param value true or false indicating the offline mode status of server.
797*/
798inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
799
800/**
801 Get status partial_revokes on server
802
803 @return a bool indicating partial_revokes status of the server.
804 @retval true Parital revokes is ON
805 @retval flase Partial revokes is OFF
806*/
808
809/**
810 Set partial_revokes with a given value
811
812 @param value true or false indicating the status of partial revokes
813 turned ON/OFF on server.
814*/
815void set_mysqld_partial_revokes(bool value);
816
818
819bool parse_authentication_policy(char *val,
820 std::vector<std::string> &policy_list);
821bool validate_authentication_policy(char *val);
823#ifdef _WIN32
824
825bool is_windows_service();
827bool update_named_pipe_full_access_group(const char *new_group_name);
828
829#endif
830
832extern bool opt_mandatory_roles_cache;
834
837/* This variable is a registry handler, defined in mysql_server component and
838 used as a output parameter for minimal chassis. */
839extern SERVICE_TYPE_NO_CONST(registry) * srv_registry;
840/* These global variables which are defined and used in
841 mysql_server component */
842extern SERVICE_TYPE(dynamic_loader_scheme_file) * scheme_file_srv;
843extern SERVICE_TYPE(dynamic_loader) * dynamic_loader_srv;
844
847
849
851
852/**
853 Stores the value of argc during server start up that contains
854 the count of arguments specified by the user in the
855 configuration files and command line.
856 The server refers the cached argument count during
857 plugin and component installation.
858*/
859extern int argc_cached;
860/**
861 Stores the value of argv during server start up that contains
862 the vector of arguments specified by the user in the
863 configuration files and command line.
864 The server refers the cached argument vector during
865 plugin and component installation.
866*/
867extern char **argv_cached;
868
869#endif /* MYSQLD_INCLUDED */
int64 query_id_t
Definition: binlog.h:72
Definition: sql_bitmap.h:138
Definition: sql_bitmap.h:41
This class implements component loading through manifest file.
Definition: sql_component.h:100
Definition: nt_servc.h:23
Definition: rpl_async_conn_failover_configuration_propagation.h:144
The class is a Rpl_filter representing global replication filters, with a vector that references all ...
Definition: rpl_filter.h:532
Class that contains functionality to monitor group member's state, role and quorum changes on all the...
Definition: rpl_io_monitor.h:126
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:49
uint sync_binlog_period
Definition: binlog.cc:181
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1595
char * opt_relay_logname
Definition: mysqld.h:278
bool server_id_supplied
Definition: mysqld.h:166
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:44
unsigned int PSI_file_key
Instrumented file key.
Definition: psi_file_bits.h:48
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:52
unsigned int PSI_rwlock_key
Instrumented rwlock key.
Definition: psi_rwlock_bits.h:44
unsigned int PSI_socket_key
Instrumented socket key.
Definition: psi_socket_bits.h:49
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:50
A better implementation of the UNIX ctype(3) library.
@ COM_END
Not a real command.
Definition: my_command.h:102
#define MAX_INDEXES
Definition: my_config.h:210
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
int64_t int64
Definition: my_inttypes.h:68
int32_t int32
Definition: my_inttypes.h:66
uint32_t uint32
Definition: my_inttypes.h:67
Common #defines and includes for file and socket I/O.
#define FN_EXTLEN
Definition: my_io.h:82
#define FN_REFLEN
Definition: my_io.h:83
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Functions related to handling of plugins and other dynamically loaded libraries.
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:71
@ SQLCOM_END
Definition: my_sqlcommand.h:207
Common header for many mysys elements.
Defines to make different thread packages compatible.
pthread_attr_t my_thread_attr_t
Definition: my_thread_bits.h:49
Common definition between mysql server & client.
#define SERVER_VERSION_LENGTH
Definition: mysql_com.h:74
Instrumentation helpers for conditions.
ABI for instrumented mutexes.
Instrumentation helpers for rwlock.
bool opt_enable_named_pipe
Definition: mysqld.cc:1230
void persisted_variables_refresh_keyring_support()
Definition: mysqld.cc:1841
uint sync_relaylog_period
Definition: mysqld.h:258
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:12120
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:12001
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:11846
ulong aborted_threads
Definition: mysqld.cc:1364
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1501
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:12191
PSI_stage_info stage_waiting_for_replica_thread_to_start
Definition: mysqld.cc:12240
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:12168
ulong opt_keyring_migration_port
Definition: mysqld.cc:1205
PSI_stage_info stage_updating
Definition: mysqld.cc:12229
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1260
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:12204
Deployed_components * g_deployed_components
This variable holds handle to the object that's responsible for loading/unloading components from man...
Definition: mysqld.cc:1386
PSI_file_key key_file_load
Definition: mysqld.cc:12106
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:12223
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:11835
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:12177
bool opt_source_verify_checksum
Definition: mysqld.cc:1312
PSI_file_key key_file_init
Definition: mysqld.cc:12114
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:12200
uint test_flags
Definition: mysqld.cc:1324
void kill_mysql(void)
Definition: mysqld.cc:2422
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:12250
mysql_mutex_t LOCK_replica_trans_dep_tracker
Definition: mysqld.cc:1589
bool validate_authentication_policy(char *val)
Validate @authentication_policy variable value.
Definition: mysqld.cc:4674
ulong delayed_insert_timeout
Definition: mysqld.cc:1365
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1596
mysql_service_registry_t * srv_registry
Definition: mysqld.cc:2008
bool sha256_password_proxy_users
Definition: mysqld.h:239
bool dynamic_plugins_are_initialized
Flag indicating if dynamic plugins have been loaded.
Definition: mysqld.cc:1952
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:12074
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:11832
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:12600
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:12169
PSI_file_key key_file_trn
Definition: mysqld.cc:12113
mysql_cond_t COND_manager
Definition: sql_manager.cc:60
char * opt_keyring_migration_socket
Definition: mysqld.cc:1202
int64 query_id_t
Definition: mysqld.h:751
uint ha_open_options
Definition: mysqld.h:265
bool opt_initialize
Definition: mysqld.cc:1228
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:12012
ulong delay_key_write_options
Definition: mysqld.cc:1326
char * my_bind_addr_str
Definition: mysqld.cc:1159
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1347
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:12590
handlerton * innodb_hton
Definition: mysqld.cc:1250
const char * show_comp_option_name[]
Definition: mysqld.cc:1029
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:12238
bool opt_log_replica_updates
Definition: mysqld.cc:1234
uint protocol_version
Definition: mysqld.cc:1327
PSI_mutex_key key_LOCK_delegate_connection_mutex
Definition: mysqld.cc:11855
PSI_file_key key_file_slow_log
Definition: mysqld.cc:12116
ulong opt_server_id_mask
Definition: mysqld.cc:1254
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1618
PSI_stage_info stage_query_end
Definition: mysqld.cc:12198
PSI_mutex_key key_source_info_thd_lock
Definition: mysqld.cc:11823
bool clone_recovery_error
True, if clone recovery has failed.
Definition: mysqld.cc:1307
char * default_tz_name
Definition: mysqld.cc:1483
ulonglong temptable_max_ram
Definition: mysqld.cc:1166
PSI_stage_info stage_replica_waiting_workers_to_exit
Definition: mysqld.cc:12221
bool using_udf_functions
Definition: mysqld.cc:1190
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:791
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1544
PSI_stage_info stage_replica_has_read_all_relay_log
Definition: mysqld.cc:12209
uint replica_rows_last_search_algorithm_used
Definition: mysqld.cc:1351
bool opt_no_dd_upgrade
Definition: mysqld.cc:1225
int init_common_variables()
Definition: mysqld.cc:4775
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:11998
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.h:339
struct st_VioSSLFd * ssl_acceptor_fd
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:11815
long opt_upgrade_mode
Definition: mysqld.cc:1226
char * my_admin_bind_addr_str
Definition: mysqld.cc:1160
uint sync_relayloginfo_period
Definition: mysqld.h:258
PSI_stage_info stage_statistics
Definition: mysqld.cc:12225
bool is_secure_file_path(const char *path)
Test a file path to determine if the path is compatible with the secure file path restriction.
Definition: mysqld.cc:11298
PSI_file_key key_file_general_log
Definition: mysqld.cc:12115
ulong rpl_stop_replica_timeout
Definition: mysqld.cc:1372
mysql_mutex_t LOCK_manager
Definition: sql_manager.cc:59
PSI_mutex_key key_mutex_replica_reporting_capability_err_lock
Definition: mysqld.cc:11825
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:11833
char * opt_keyring_migration_source
Definition: mysqld.cc:1203
ulong opt_mts_replica_parallel_workers
Definition: mysqld.cc:1346
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_event_read
Definition: mysqld.cc:12216
char * opt_keyring_migration_user
Definition: mysqld.cc:1199
Bitmap< 64 > Key_map
Definition: mysqld.h:77
PSI_stage_info stage_worker_waiting_for_commit_parent
Definition: mysqld.cc:12246
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:11959
const char * log_error_dest
Definition: mysqld.cc:1485
PSI_mutex_key key_source_info_run_lock
Definition: mysqld.cc:11821
PSI_file_key key_file_misc
Definition: mysqld.cc:12110
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:12173
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1564
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:12073
PSI_cond_key key_COND_active
Definition: mysqld.cc:11999
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:12231
const char * server_uuid_ptr
Definition: mysqld.cc:1470
bool opt_replica_compressed_protocol
Definition: mysqld.cc:1231
bool old_mode
compatibility option:
Definition: mysqld.cc:1242
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:12019
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:11841
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:11960
PSI_stage_info stage_queueing_source_event_to_the_relay_log
Definition: mysqld.cc:12199
mysql_component_t mysql_component_mysql_server
Definition: server_component.cc:809
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:11852
PSI_stage_info stage_update
Definition: mysqld.cc:12228
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:2398
void my_init_signals()
Definition: mysqld.cc:3511
ulonglong replica_type_conversions_options
Definition: mysqld.cc:1345
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:12163
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1590
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1492
ulong slave_trans_retries
Definition: mysqld.cc:1342
bool parse_authentication_policy(char *val, std::vector< std::string > &policy_list)
Parse @authentication_policy variable value.
Definition: mysqld.cc:4621
SHOW_VAR status_vars[]
Definition: mysqld.cc:9672
PSI_stage_info stage_checking_source_version
Definition: mysqld.cc:12166
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:12170
uint mysqld_port
Definition: mysqld.h:266
ulong opt_tc_log_size
Definition: mysqld.cc:1193
PSI_stage_info stage_replica_waiting_worker_to_free_events
Definition: mysqld.cc:12219
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_binlog_dump_request
Definition: mysqld.cc:12215
uint replica_net_timeout
Definition: mysqld.cc:1343
PSI_cond_key key_source_info_data_cond
Definition: mysqld.cc:12003
handlerton * myisam_hton
Definition: mysqld.cc:1249
PSI_stage_info stage_sending_binlog_event_to_replica
Definition: mysqld.cc:12207
bool temptable_use_mmap
Definition: mysqld.cc:1168
bool opt_general_log
Definition: mysqld.cc:1180
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
Definition: mysqld.cc:12183
PSI_stage_info stage_suspending
Definition: mysqld.cc:12247
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:11814
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:12119
ulong table_def_size
Definition: mysqld.cc:1336
char system_time_zone_dst_off[30]
Definition: mysqld.h:301
int * get_remaining_argc()
Definition: mysqld.cc:1850
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1523
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1601
PSI_stage_info stage_system_lock
Definition: mysqld.cc:12227
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1563
ulong table_cache_size
Definition: mysqld.cc:1331
PSI_stage_info stage_replica_waiting_for_workers_to_process_queue
Definition: mysqld.cc:12214
mysql_rwlock_t LOCK_sys_init_replica
Definition: mysqld.cc:1591
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1363
uint opt_large_page_size
Definition: mysqld.cc:1269
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1370
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:12241
bool lower_case_file_system
Definition: mysqld.cc:1264
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:782
mysql_mutex_t LOCK_partial_revokes
Definition: mysqld.cc:1281
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_registration_on_source
Definition: mysqld.cc:12217
bool trust_function_creators
Definition: mysqld.h:237
PSI_stage_info stage_after_create
Definition: mysqld.cc:12161
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:11817
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:11842
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1488
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:12197
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:11840
void thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name)
Definition: mysqld.cc:1876
mysql_cond_t COND_server_started
Definition: mysqld.cc:1597
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:11831
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1540
const char * default_tmp_storage_engine
Definition: mysqld.cc:1165
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:12234
uint opt_server_id_bits
Definition: mysqld.cc:1253
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:12178
bool opt_replica_preserve_commit_order
Definition: mysqld.cc:1349
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:12232
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:11827
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:12224
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:12175
bool opt_skip_name_resolve
Definition: mysqld.cc:1186
const char * timestamp_type_names[]
Definition: mysqld.cc:1322
const char * first_keyword
Definition: mysqld.cc:1037
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:11834
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1495
bool opt_debugging
Definition: mysqld.cc:1151
PSI_mutex_key key_monitor_info_run_lock
Definition: mysqld.cc:11854
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:1176
char glob_hostname[HOSTNAME_LENGTH+1]
Definition: mysqld.cc:1487
PSI_mutex_key key_LOCK_thd_security_ctx
Definition: mysqld.cc:11818
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:12244
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1598
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:11956
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:11812
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:12245
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1469
PSI_cond_key key_monitor_info_run_cond
Definition: mysqld.cc:12021
char * opt_disabled_storage_engines
Definition: mysqld.cc:1252
bool opt_bin_log
Definition: mysqld.cc:1179
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1278
char * opt_log_error_suppression_list
Definition: mysqld.cc:1197
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1360
PSI_stage_info stage_replica_reconnecting_after_failed_event_read
Definition: mysqld.cc:12211
const mysql_service_dynamic_loader_t * dynamic_loader_srv
Definition: persistent_dynamic_loader.cc:77
std::vector< std::string > authentication_policy_list
Definition: mysqld.cc:1508
bool opt_replica_sql_verify_checksum
Definition: mysqld.cc:1313
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:11816
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1477
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1594
char * opt_slow_logname
Definition: mysqld.h:277
Rpl_acf_configuration_handler * rpl_acf_configuration_handler
Definition: mysqld.cc:1536
PSI_file_key key_file_frm
Definition: mysqld.cc:12105
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:12190
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:12016
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:12181
ulonglong temptable_max_mmap
Definition: mysqld.cc:1167
bool avoid_temporal_upgrade
Compatibility option to prevent auto upgrade of old temporals during certain ALTER TABLE operations.
Definition: mysqld.cc:1420
bool opt_log_unsafe_statements
Definition: mysqld.cc:1320
MYSQL_PLUGIN_IMPORT CHARSET_INFO * files_charset_info
Definition: mysqld.cc:1546
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:11836
bool opt_myisam_use_mmap
Definition: mysqld.h:187
ulong delayed_insert_limit
Definition: mysqld.cc:1365
ulong what_to_log
Definition: mysqld.cc:1338
bool opt_super_readonly
Definition: mysqld.h:210
char *** get_remaining_argv()
Definition: mysqld.cc:1852
bool migrate_connect_options
Variable to check if connection related options are set as part of keyring migration.
Definition: mysqld.cc:1206
bool opt_log_slow_extra
Definition: mysqld.cc:1184
enum_server_operational_state
Definition: mysqld.h:159
@ SERVER_OPERATING
Definition: mysqld.h:161
@ SERVER_BOOTING
Definition: mysqld.h:160
@ SERVER_SHUTTING_DOWN
Definition: mysqld.h:162
PSI_stage_info stage_replica_waiting_event_from_coordinator
Definition: mysqld.cc:12213
bool opt_validate_config
Definition: mysqld.cc:1047
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1561
ulong connect_timeout
Definition: mysqld.h:325
char * opt_keyring_migration_host
Definition: mysqld.cc:1200
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:12222
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1592
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:11752
uint mysqld_admin_port
Definition: mysqld.cc:1161
bool server_shutting_down
Definition: mysqld.cc:1634
ulonglong slave_rows_search_algorithms_options
Definition: mysqld.cc:1348
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:12242
ulong tc_log_max_pages_used
Definition: mysqld.h:260
ulong open_files_limit
Definition: mysqld.cc:1341
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:4527
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1275
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1919
mysql_mutex_t LOCK_global_conn_mem_limit
Definition: mysqld.cc:1626
ulong tablespace_def_size
Definition: mysqld.cc:1337
bool sp_automatic_privileges
Definition: mysqld.cc:1296
PSI_stage_info stage_end
Definition: mysqld.cc:12179
PSI_stage_info stage_registering_replica_on_source
Definition: mysqld.cc:12201
void thd_mem_cnt_free(THD *thd, size_t size)
Definition: mysqld.cc:1886
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1493
std::atomic< bool > offline_mode
Definition: mysqld.cc:1268
mysql_mutex_t LOCK_prepared_stmt_count
The below lock protects access to two global server variables: max_prepared_stmt_count and prepared_s...
Definition: mysqld.cc:1574
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:12364
ulong tc_log_page_size
Definition: mysqld.h:260
bool opt_local_infile
Definition: mysqld.cc:1231
char * mysql_home_ptr
Definition: mysqld.cc:1689
char * lc_messages_dir_ptr
Definition: mysqld.cc:1491
const char * server_build_id_ptr
Definition: mysqld.cc:1473
PSI_file_key key_file_relaylog
Definition: mysqld.cc:12117
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:4562
const char * load_default_groups[]
Definition: program.cc:264
PSI_mutex_key key_mta_gaq_LOCK
Definition: mysqld.cc:11850
mysql_mutex_t LOCK_sql_replica_skip_counter
Definition: mysqld.cc:1587
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1564
ulong mts_parallel_option
Definition: mysqld.cc:1353
ulong prepared_stmt_count
Definition: mysqld.h:334
uint opt_mta_checkpoint_period
Definition: mysqld.h:259
handlerton * temptable_hton
Definition: mysqld.cc:1248
const char * binary_keyword
Definition: mysqld.h:373
uint default_password_lifetime
Definition: mysqld.cc:1270
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:12002
bool super_read_only
Definition: mysqld.cc:1256
int argc_cached
Stores the value of argc during server start up that contains the count of arguments specified by the...
Definition: mysqld.cc:1211
ulong back_log
Definition: mysqld.cc:1330
ulong stored_program_cache_size
Soft upper limit for number of sp_head objects that can be stored in the sp_cache for one connection.
Definition: mysqld.cc:1415
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1521
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1355
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:12187
char * opt_log_error_services
Definition: mysqld.cc:1198
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:693
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1299
PSI_file_key key_file_loadfile
Definition: mysqld.cc:12107
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:12233
bool opt_noacl
Definition: mysqld.h:236
Time_zone * default_tz
Definition: mysqld.cc:1499
PSI_cond_key key_source_info_start_cond
Definition: mysqld.cc:12004
mysql_component_t mysql_component_performance_schema
Definition: pfs.cc:9974
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:11730
bool opt_old_style_user_limits
Definition: mysqld.cc:1286
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:1141
ulong slow_launch_time
Definition: mysqld.cc:1339
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2534
PSI_stage_info stage_replica_reconnecting_after_failed_registration_on_source
Definition: mysqld.cc:12212
bool opt_character_set_client_handshake
Definition: mysqld.cc:1187
PSI_stage_info stage_source_has_sent_all_binlog_to_replica
Definition: mysqld.cc:12193
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1500
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:12102
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:11837
query_id_t next_query_id()
Definition: mysqld.h:758
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:12018
PSI_cond_key key_gtid_ensure_index_cond
Definition: mysqld.cc:12017
bool opt_keyring_operations
Definition: mysqld.cc:1424
bool opt_replica_allow_batching
Definition: mysqld.cc:1236
PSI_socket_key key_socket_unix
Definition: mysqld.cc:12365
ulonglong log_output_options
Definition: mysqld.cc:1181
bool opt_persist_sensitive_variables_in_plaintext
Definition: mysqld.cc:1210
const char * mysqld_unix_port
Definition: mysqld.cc:1504
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1475
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1276
ulong binlog_stmt_cache_disk_use
Definition: mysqld.h:312
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:12108
enum_binlog_error_action
Definition: mysqld.h:355
@ IGNORE_ERROR
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:357
@ ABORT_SERVER
Abort the server.
Definition: mysqld.h:359
char * opt_protocol_compression_algorithms
Definition: mysqld.cc:1502
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:11844
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:12014
bool opt_help
Definition: mysqld.cc:1047
bool clone_startup
True, if restarted from a cloned database.
Definition: mysqld.cc:1303
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1371
PSI_cond_key key_cond_mta_gaq
Definition: mysqld.cc:12015
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:11829
PSI_stage_info stage_killing_replica
Definition: mysqld.cc:12189
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1868
ulong opt_log_throttle_queries_not_using_indexes
Definition: mysqld.cc:1183
char * opt_keyring_migration_password
Definition: mysqld.cc:1201
mysql_mutex_t LOCK_crypt
Definition: mysqld.cc:1563
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1599
PSI_stage_info stage_wait_on_commit_ticket
Definition: mysqld.cc:12257
bool mysql_native_password_proxy_users
Definition: mysqld.h:238
ulong max_digest_length
Definition: sql_digest.cc:49
handlerton * heap_hton
Definition: mysqld.cc:1247
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:12011
ulong binlog_error_action
Definition: mysqld.cc:1316
ulong stored_program_def_size
Definition: mysqld.cc:1335
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:11843
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:389
bool opt_large_pages
Definition: mysqld.cc:1265
PSI_stage_info stage_flushing_relay_log_and_source_info_repository
Definition: mysqld.cc:12184
const mysql_service_dynamic_loader_scheme_file_t * scheme_file_srv
Definition: mysqld.cc:2009
static void set_connection_events_loop_aborted(bool value)
Definition: mysqld.h:770
const double log_10[309]
Definition: mysqld.cc:1428
PSI_stage_info stage_changing_source
Definition: mysqld.cc:12165
bool opt_always_activate_granted_roles
Definition: mysqld.cc:1178
Source_IO_monitor * rpl_source_io_monitor
Definition: mysqld.cc:1537
ulong binlog_stmt_cache_size
Definition: mysqld.h:338
ulong opt_log_timestamps
Definition: mysqld.cc:1323
mysql_mutex_t LOCK_authentication_policy
Definition: mysqld.cc:1624
long opt_check_table_funs
Definition: mysqld.cc:1227
uint select_errors
Definition: mysqld.h:265
PSI_thread_key key_thread_handle_con_admin_sockets
Definition: mysqld.cc:12076
PSI_stage_info stage_rename
Definition: mysqld.cc:12203
ulonglong global_conn_mem_limit
Definition: mysqld.cc:1379
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:12118
char * pidfile_name_ptr
Definition: mysqld.h:279
std::atomic< int32 > atomic_replica_open_temp_tables
Definition: mysqld.cc:1340
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1478
bool opt_readonly
Definition: mysqld.h:209
ulong log_error_verbosity
Definition: mysqld.cc:1208
PSI_file_key key_file_hash_join
Definition: mysqld.cc:12122
ulong specialflag
Definition: mysqld.cc:1368
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1563
struct System_status_var global_status_var
Definition: mysqld.cc:1542
bool opt_skip_show_db
Definition: mysqld.h:175
const char * binlog_checksum_type_names[]
BINLOG_CHECKSUM variable.
Definition: log_event.cc:193
PSI_stage_info stage_communication_delegation
Definition: mysqld.cc:12256
PSI_file_key key_file_dbopt
Definition: mysqld.cc:12101
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:12249
const char * default_storage_engine
Definition: mysqld.cc:1164
PSI_stage_info stage_binlog_transaction_decompress
Definition: mysqld.cc:12252
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:11845
mysql_rwlock_t LOCK_server_shutting_down
Definition: mysqld.cc:1628
void set_mysqld_offline_mode(bool value)
Set offline mode with a given value.
Definition: mysqld.h:798
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:12172
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:1207
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:12071
PSI_file_key key_select_to_file
Definition: mysqld.cc:12103
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:1038
PSI_file_key key_file_tclog
Definition: mysqld.cc:12111
const char * binlog_error_action_list[]
Definition: mysqld.cc:1317
PSI_stage_info stage_preparing
Definition: mysqld.cc:12196
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:1056
PSI_stage_info stage_setup
Definition: mysqld.cc:12208
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:390
ulong max_binlog_size
Definition: mysqld.cc:1341
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1600
bool opt_large_files
Definition: mysqld.cc:1040
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:11851
char ** argv_cached
Stores the value of argv during server start up that contains the vector of arguments specified by th...
Definition: mysqld.cc:1212
bool opt_require_secure_transport
Definition: mysqld.cc:1257
mysql_mutex_t LOCK_replica_net_timeout
Definition: mysqld.cc:1588
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:11839
PSI_cond_key key_cond_slave_worker_hash
Definition: mysqld.cc:12020
MYSQL_PLUGIN_IMPORT std::atomic< int32 > connection_events_loop_aborted_flag
Definition: mysqld.cc:1194
MYSQL_PLUGIN_IMPORT CHARSET_INFO * table_alias_charset
Definition: mysqld.cc:1547
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1426
bool opt_log_slow_replica_statements
Definition: mysqld.h:235
bool opt_partial_revokes
Definition: mysqld.cc:1273
PSI_mutex_key key_source_info_sleep_lock
Definition: mysqld.cc:11822
PSI_mutex_key key_LOCK_group_replication_connection_mutex
Definition: mysqld.cc:11856
ulong delayed_queue_size
Definition: mysqld.h:315
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2559
ulonglong global_conn_mem_counter
Definition: mysqld.cc:1380
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:1057
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1359
PSI_mutex_key key_mutex_replica_worker_hash
Definition: mysqld.cc:11853
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1960
char server_build_id[42]
Definition: build_id_test.cc:30
bool opt_binlog_expire_logs_auto_purge
Definition: mysqld.cc:1410
PSI_stage_info stage_init
Definition: mysqld.cc:12188
ulong locked_account_connection_count
Definition: mysqld.cc:1377
PSI_file_key key_file_binlog
Definition: mysqld.cc:12099
void reset_status_by_thd()
Definition: mysqld.cc:11801
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:12109
PSI_stage_info stage_rpl_failover_wait_before_next_fetch
Definition: mysqld.cc:12255
PSI_cond_key key_source_info_sleep_cond
Definition: mysqld.cc:12006
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:12194
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:11967
CHARSET_INFO * character_set_filesystem
Definition: mysqld.cc:1548
bool check_proxy_users
Definition: mysqld.cc:1287
PSI_cond_key key_source_info_rotate_cond
Definition: mysqld.cc:12007
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:11828
PSI_stage_info stage_explaining
Definition: mysqld.cc:12182
char * opt_mysql_tmpdir
Definition: mysqld.cc:1505
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1845
ulong max_relay_log_size
Definition: mysqld.h:343
ulong binlog_row_metadata
Definition: mysqld.cc:1311
bool persisted_globals_load
Definition: mysqld.cc:1422
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:11819
PSI_mutex_key key_mta_temp_table_LOCK
Definition: mysqld.cc:11849
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:12205
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:11838
bool relay_log_purge
Definition: mysqld.cc:1258
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:12176
char * opt_bin_logname
Definition: mysqld.h:277
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:11826
time_t server_start_time
Definition: mysqld.cc:1467
PSI_stage_info stage_waiting_for_source_update
Definition: mysqld.cc:12237
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1328
ulong current_pid
Definition: mysqld.cc:1404
bool locked_in_memory
Definition: mysqld.cc:1191
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:12009
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:12164
PSI_file_key key_file_fileparser
Definition: mysqld.cc:12104
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1517
ulong replica_exec_mode_options
Definition: mysqld.cc:1344
enum_delay_key_write
Definition: mysqld.h:268
@ DELAY_KEY_WRITE_ON
Definition: mysqld.h:270
@ DELAY_KEY_WRITE_NONE
Definition: mysqld.h:269
@ DELAY_KEY_WRITE_ALL
Definition: mysqld.h:271
mysql_mutex_t LOCK_replica_list
Protects slave_list in rpl_source.cc; the list of currently running dump threads with metadata for th...
Definition: mysqld.cc:1580
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1564
bool log_bin_supplied
Definition: mysqld.cc:1465
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2502
PSI_stage_info stage_flushing_relay_log_info_file
Definition: mysqld.cc:12185
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1409
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:12013
char * default_auth_plugin
Definition: mysqld.cc:1690
MYSQL_PLUGIN_IMPORT CHARSET_INFO * national_charset_info
Definition: mysqld.cc:1547
PSI_stage_info stage_connecting_to_source
Definition: mysqld.cc:12171
PSI_stage_info stage_rpl_failover_fetching_source_member_details
Definition: mysqld.cc:12253
PSI_stage_info stage_binlog_transaction_compress
Definition: mysqld.cc:12251
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:11955
PSI_file_key key_file_trg
Definition: mysqld.cc:12112
char * opt_init_file
Definition: mysqld.cc:1489
bool relay_log_recovery
Definition: mysqld.cc:1259
PSI_rwlock_key key_rwlock_gtid_mode_lock
Definition: mysqld.cc:1096
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:12100
PSI_cond_key key_COND_pool
Definition: mysqld.cc:12000
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:1182
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:12162
const char * opt_tc_log_file
Definition: mysqld.cc:1490
PSI_stage_info stage_rpl_failover_updating_source_member_details
Definition: mysqld.cc:12254
LEX_STRING opt_init_replica
Definition: mysqld.h:395
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:11957
struct my_option my_long_early_options[]
Definition: mysqld.cc:8849
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:12072
char * opt_keyring_migration_destination
Definition: mysqld.cc:1204
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1319
PSI_stage_info stage_starting
Definition: mysqld.cc:12248
bool opt_slow_log
Definition: mysqld.h:170
ulong tc_log_page_waits
Definition: tc_log.cc:307
mysql_rwlock_t LOCK_sys_init_connect
Definition: mysqld.cc:1591
bool log_bin_use_v1_row_events
Definition: mysqld.cc:1373
struct System_variables max_system_variables
Definition: mysqld.cc:1541
char * opt_authentication_policy
Definition: mysqld.cc:1507
bool check_and_update_partial_revokes_sysvar(THD *thd)
If there exists at least one restrictions on any user, then update global variables which track the p...
Definition: mysqld.cc:12614
bool update_authentication_policy()
Update @authentication_policy variable value.
Definition: mysqld.cc:4723
const char * opt_secure_file_priv
Definition: mysqld.cc:1261
PSI_mutex_key key_source_info_data_lock
Definition: mysqld.cc:11820
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1262
ulong binlog_cache_size
Definition: mysqld.cc:1354
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:12186
LEX_STRING opt_init_connect
Definition: mysqld.cc:1172
ulong binlog_checksum_options
Definition: mysqld.cc:1310
mysql_mutex_t LOCK_admin_tls_ctx_options
Definition: mysqld.cc:1280
ulong expire_logs_days
Definition: mysqld.cc:1408
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1315
bool mysqld_server_started
Definition: mysqld.cc:1636
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:12235
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:367
char * opt_general_logname
Definition: mysqld.cc:1676
ulong binlog_cache_use
Definition: mysqld.cc:1369
ulong max_connect_errors
Definition: mysqld.cc:1371
uint sync_masterinfo_period
Definition: mysqld.h:259
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:12206
PSI_stage_info stage_creating_table
Definition: mysqld.cc:12174
ulong binlog_cache_disk_use
Definition: mysqld.h:311
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1392
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1860
ulong binlog_row_event_max_size
Definition: mysqld.cc:1309
ulong flush_time
Definition: mysqld.h:333
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:12075
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:12202
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1279
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1358
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:12192
PSI_mutex_key key_source_info_rotate_lock
Definition: mysqld.cc:11824
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:11813
bool read_only
Definition: mysqld.cc:1255
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:12226
bool opt_mandatory_roles_cache
Definition: mysqld.cc:1177
PSI_stage_info stage_executing
Definition: mysqld.cc:12180
PSI_stage_info stage_replica_reconnecting_after_failed_binlog_dump_request
Definition: mysqld.cc:12210
PSI_stage_info stage_replica_waiting_worker_queue
Definition: mysqld.cc:12218
PSI_stage_info stage_replica_waiting_worker_to_release_partition
Definition: mysqld.cc:12220
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1488
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1298
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:11830
ulong schema_def_size
Definition: mysqld.cc:1334
ulong replica_max_allowed_packet
Definition: mysqld.cc:1356
PSI_file_key key_file_sdi
Definition: mysqld.cc:12121
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1613
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:4563
PSI_stage_info stage_waiting_for_the_replica_thread_to_advance_position
Definition: mysqld.cc:12243
uint opt_mta_checkpoint_group
Definition: mysqld.h:259
enum_replica_type_conversions
Definition: mysqld.h:201
@ REPLICA_TYPE_CONVERSIONS_ALL_UNSIGNED
Definition: mysqld.h:204
@ REPLICA_TYPE_CONVERSIONS_ALL_SIGNED
Definition: mysqld.h:205
@ REPLICA_TYPE_CONVERSIONS_ALL_NON_LOSSY
Definition: mysqld.h:203
@ REPLICA_TYPE_CONVERSIONS_ALL_LOSSY
Definition: mysqld.h:202
bool password_require_current
Definition: mysqld.cc:1271
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1277
bool opt_general_log_raw
Definition: mysqld.h:170
bool opt_safe_user_create
Definition: mysqld.cc:1232
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:12230
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:12366
bool opt_using_transactions
Definition: mysqld.cc:1192
PSI_stage_info stage_waiting_for_source_to_send_event
Definition: mysqld.cc:12236
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:12008
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1534
enum_slave_rows_search_algorithms
Definition: mysqld.h:213
@ SLAVE_ROWS_INDEX_SCAN
Definition: mysqld.h:215
@ SLAVE_ROWS_HASH_SCAN
Definition: mysqld.h:216
@ SLAVE_ROWS_TABLE_SCAN
Definition: mysqld.h:214
bool opt_verbose
Definition: mysql_ssl_rsa_setup.cc:129
PSI_cond_key key_source_info_stop_cond
Definition: mysqld.cc:12005
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:12167
PSI_rwlock_key key_rwlock_receiver_sid_lock
Definition: mysqld.cc:11958
PSI_stage_info stage_waiting_for_replica_mutex_on_exit
Definition: mysqld.cc:12239
PSI_cond_key key_COND_group_replication_connection_cond_var
Definition: mysqld.cc:12023
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:12010
PSI_stage_info stage_optimizing
Definition: mysqld.cc:12195
char system_time_zone_dst_on[30]
Definition: mysqld.cc:1476
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1489
long tc_heuristic_recover
Definition: mysqld.cc:1329
bool connection_events_loop_aborted()
Definition: mysqld.h:765
bool opt_disable_networking
Definition: mysqld.cc:1185
bool listen_admin_interface_in_separate_thread
Definition: mysqld.cc:1162
size_t mysql_data_home_len
Definition: mysqld.cc:1494
static char * path
Definition: mysqldump.cc:137
static char * shared_memory_base_name
Definition: mysqltest.cc:193
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Instrumentation helpers for mutexes.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
NTService * get_win_service_ptr()
bool is_windows_service()
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
#define SERVICE_TYPE_NO_CONST(name)
Generates the standard Service type name.
Definition: service.h:71
Windows NT Service class library.
File containing constants that can be used throughout the server.
constexpr const size_t UUID_LENGTH
Definition: sql_const.h:263
Definition: m_ctype.h:385
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Definition: my_sys.h:312
Stage instrument information.
Definition: psi_stage_bits.h:74
Statement instrument information.
Definition: psi_statement_bits.h:133
SHOW STATUS Server status variable.
Definition: status_var.h:79
Per thread status variables.
Definition: system_variables.h:511
Definition: system_variables.h:203
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622
Definition: my_getopt.h:93
Carries information on the specific Component, all Service Implementations it provides,...
Definition: dynamic_loader.h:263
An instrumented cond structure.
Definition: mysql_cond_bits.h:50
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:51
Definition: mysql_com.h:1108
Definition: violite.h:255
Include file for Sun RPC to compile out of the box.
unsigned int uint
Definition: uca9-dump.cc:75