MySQL 8.0.37
Source Code Documentation
mysqld.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2024, 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 bool opt_initialize;
185extern bool opt_safe_user_create;
188extern ulong replica_exec_mode_options;
192extern int32_t opt_regexp_time_limit;
193extern int32_t opt_regexp_stack_limit;
194#ifdef _WIN32
195extern bool opt_no_monitor;
196#endif // _WIN32
197extern bool opt_debugging;
198extern bool opt_validate_config;
199
207
210extern bool lower_case_file_system;
211
215 SLAVE_ROWS_HASH_SCAN = (1U << 2)
219
221
222#ifndef NDEBUG
224#endif
225extern ulong mts_parallel_option;
226#ifdef _WIN32
227extern bool opt_enable_named_pipe;
228extern char *named_pipe_full_access_group;
229extern bool opt_enable_shared_memory;
230extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
231#endif
232extern bool opt_allow_suspicious_udfs;
233extern const char *opt_secure_file_priv;
239#ifdef _WIN32
240extern const char *shared_memory_base_name;
241#endif
242extern const char *mysqld_unix_port;
243extern char *default_tz_name;
244extern Time_zone *default_tz;
245extern const char *default_storage_engine;
246extern const char *default_tmp_storage_engine;
249extern bool temptable_use_mmap;
250extern bool using_udf_functions;
251extern bool locked_in_memory;
252extern bool opt_using_transactions;
253extern ulong current_pid;
254extern ulong expire_logs_days;
255extern ulong binlog_expire_logs_seconds;
260extern ulong tc_log_page_waits;
261extern bool relay_log_purge;
262extern bool relay_log_recovery;
263extern std::atomic<bool> offline_mode;
266
272extern ulong delay_key_write_options;
273
274extern ulong opt_log_timestamps;
275extern const char *timestamp_type_names[];
279extern char *default_auth_plugin;
281extern bool password_require_current;
282/*
283 @warning : The real value is in @ref partial_revokes. The @ref
284 opt_partial_revokes is just a tool to trick the Sys_var class into
285 operating on an atomic variable.
286
287 Thus : do not use or access @ref opt_partial_revokes in your code.
288 If you need the value of the flag please use the @ref partial_revokes
289 global.
290 @todo :
291 @ref opt_partial_revokes to be removed when the Sys_var classes can operate
292 safely on an atomic.
293 */
294extern bool opt_partial_revokes;
295extern char *my_bind_addr_str;
296extern char *my_admin_bind_addr_str;
299extern char glob_hostname[HOSTNAME_LENGTH + 1];
301extern char *opt_init_file;
302extern const char *opt_tc_log_file;
303extern char server_uuid[UUID_LENGTH + 1];
304extern const char *server_uuid_ptr;
305#if defined(HAVE_BUILD_ID_SUPPORT)
306extern char server_build_id[42];
307extern const char *server_build_id_ptr;
308#endif
309extern const double log_10[309];
312extern ulong aborted_threads;
313extern ulong delayed_insert_timeout;
315extern std::atomic<int32> atomic_replica_open_temp_tables;
316extern ulong slow_launch_time;
317extern ulong table_cache_size;
318extern ulong schema_def_size;
319extern ulong stored_program_def_size;
320extern ulong table_def_size;
321extern ulong tablespace_def_size;
323extern ulong max_digest_length;
326extern ulong slave_trans_retries;
330extern ulong rpl_stop_replica_timeout;
331extern bool log_bin_use_v1_row_events;
334extern ulong open_files_limit;
335extern bool clone_startup;
336extern bool clone_recovery_error;
343extern ulong replica_max_allowed_packet;
344extern ulong binlog_row_event_max_size;
345extern ulong binlog_checksum_options;
346extern ulong binlog_row_metadata;
347extern const char *binlog_checksum_type_names[];
352extern ulong binlog_error_action;
355 /// Ignore the error and let server continue without binlogging
357 /// Abort the server
358 ABORT_SERVER = 1
360extern const char *binlog_error_action_list[];
361extern char *opt_authentication_policy;
362extern std::vector<std::string> authentication_policy_list;
363
364extern ulong stored_program_cache_size;
365extern ulong back_log;
367extern time_t server_start_time;
368extern char *opt_mysql_tmpdir;
371extern const char *show_comp_option_name[];
372extern const char *first_keyword, *binary_keyword;
373extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
374extern const char *in_left_expr_name;
375extern SHOW_VAR status_vars[];
378extern struct rand_struct sql_rand;
379extern handlerton *myisam_hton;
380extern handlerton *heap_hton;
382extern handlerton *innodb_hton;
384extern ulong opt_server_id_mask;
385extern const char *load_default_groups[];
386extern struct my_option my_long_early_options[];
387extern bool mysqld_server_started;
390extern bool server_shutting_down;
392extern bool old_mode;
393extern bool avoid_temporal_upgrade;
395extern ulong connection_errors_internal;
396extern ulong connection_errors_peer_addr;
398extern char *opt_log_error_services;
400/** The size of the host_cache. */
401extern uint host_cache_size;
402extern ulong log_error_verbosity;
403
404extern bool persisted_globals_load;
405extern bool opt_keyring_operations;
407extern char *opt_keyring_migration_user;
408extern char *opt_keyring_migration_host;
413extern ulong opt_keyring_migration_port;
414
417/**
418 Variable to check if connection related options are set
419 as part of keyring migration.
420*/
421extern bool migrate_connect_options;
422
424
425extern thread_local MEM_ROOT **THR_MALLOC;
426
429
430#ifdef HAVE_PSI_INTERFACE
431
473
476
485
517
542
546
547#endif /* HAVE_PSI_INTERFACE */
548
549/*
550 MAINTAINER: Please keep this list in order, to limit merge collisions.
551 Hint: grep PSI_stage_info | sort -u
552*/
575extern PSI_stage_info
603extern PSI_stage_info
606extern PSI_stage_info
610extern PSI_stage_info
612extern PSI_stage_info
614extern PSI_stage_info
656#ifdef HAVE_PSI_STATEMENT_INTERFACE
657/**
658 Statement instrumentation keys (sql).
659 The last entry, at [SQLCOM_END], is for parsing errors.
660*/
662
663/**
664 Statement instrumentation keys (com).
665 The last entry, at [COM_END], is for packet errors.
666*/
668
669/**
670 Statement instrumentation key for replication.
671*/
673#endif /* HAVE_PSI_STATEMENT_INTERFACE */
674
675extern struct st_VioSSLFd *ssl_acceptor_fd;
676
677extern bool opt_large_pages;
679extern char lc_messages_dir[FN_REFLEN];
680extern char *lc_messages_dir_ptr;
681extern const char *log_error_dest;
685
686extern long tc_heuristic_recover;
687
688extern ulong specialflag;
689extern size_t mysql_data_home_len;
690extern const char *mysql_real_data_home_ptr;
697extern bool log_bin_supplied;
700
701#define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
702
703/*
704 Server mutex locks and condition variables.
705 */
734
738
743
744extern ulong opt_ssl_fips_mode;
745
747
748extern sigset_t mysqld_signal_mask;
749/* query_id */
751extern std::atomic<query_id_t> atomic_global_query_id;
752
753int *get_remaining_argc();
754char ***get_remaining_argv();
755
756/* increment query_id and return it. */
757[[nodiscard]] inline query_id_t next_query_id() {
758 return ++atomic_global_query_id;
759}
760
761#define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
762
763/* Accessor function for _connection_events_loop_aborted flag */
764[[nodiscard]] inline bool connection_events_loop_aborted() {
766}
767
768/* only here because of unireg_init(). */
769static inline void set_connection_events_loop_aborted(bool value) {
771}
772
773/**
774
775 Check if --help option or --validate-config is specified.
776
777 @retval false Neither 'help' or 'validate-config' option is enabled.
778 @retval true Either 'help' or 'validate-config' or both options
779 are enabled.
780*/
782 return (opt_help || opt_validate_config);
783}
784
785/**
786 Get mysqld offline mode.
787
788 @return a bool indicating the offline mode status of the server.
789*/
790inline bool mysqld_offline_mode() { return offline_mode.load(); }
791
792/**
793 Set offline mode with a given value
794
795 @param value true or false indicating the offline mode status of server.
796*/
797inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
798
799/**
800 Get status partial_revokes on server
801
802 @return a bool indicating partial_revokes status of the server.
803 @retval true Parital revokes is ON
804 @retval flase Partial revokes is OFF
805*/
807
808/**
809 Set partial_revokes with a given value
810
811 @param value true or false indicating the status of partial revokes
812 turned ON/OFF on server.
813*/
814void set_mysqld_partial_revokes(bool value);
815
817
818bool parse_authentication_policy(char *val,
819 std::vector<std::string> &policy_list);
820bool validate_authentication_policy(char *val);
822#ifdef _WIN32
823
824bool is_windows_service();
826bool update_named_pipe_full_access_group(const char *new_group_name);
827
828#endif
829
831extern bool opt_mandatory_roles_cache;
833
836/* This variable is a registry handler, defined in mysql_server component and
837 used as a output parameter for minimal chassis. */
838extern SERVICE_TYPE_NO_CONST(registry) * srv_registry;
839/* These global variables which are defined and used in
840 mysql_server component */
841extern SERVICE_TYPE(dynamic_loader_scheme_file) * scheme_file_srv;
842extern SERVICE_TYPE(dynamic_loader) * dynamic_loader_srv;
843
846
848
850
851/**
852 Stores the value of argc during server start up that contains
853 the count of arguments specified by the user in the
854 configuration files and command line.
855 The server refers the cached argument count during
856 plugin and component installation.
857*/
858extern int argc_cached;
859/**
860 Stores the value of argv during server start up that contains
861 the vector of arguments specified by the user in the
862 configuration files and command line.
863 The server refers the cached argument vector during
864 plugin and component installation.
865*/
866extern char **argv_cached;
867
868#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:182
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1594
char * opt_relay_logname
Definition: mysqld.h:277
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
#define MAX_INDEXES
Definition: config.h:210
A better implementation of the UNIX ctype(3) library.
@ COM_END
Not a real command.
Definition: my_command.h:101
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:1229
void persisted_variables_refresh_keyring_support()
Definition: mysqld.cc:1840
uint sync_relaylog_period
Definition: mysqld.h:257
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:12110
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:11991
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:11836
ulong aborted_threads
Definition: mysqld.cc:1363
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1500
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:12181
PSI_stage_info stage_waiting_for_replica_thread_to_start
Definition: mysqld.cc:12230
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:12158
ulong opt_keyring_migration_port
Definition: mysqld.cc:1205
PSI_stage_info stage_updating
Definition: mysqld.cc:12219
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1259
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:12194
Deployed_components * g_deployed_components
This variable holds handle to the object that's responsible for loading/unloading components from man...
Definition: mysqld.cc:1385
PSI_file_key key_file_load
Definition: mysqld.cc:12096
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:12213
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:11825
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:12167
bool opt_source_verify_checksum
Definition: mysqld.cc:1311
PSI_file_key key_file_init
Definition: mysqld.cc:12104
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:12190
uint test_flags
Definition: mysqld.cc:1323
void kill_mysql(void)
Definition: mysqld.cc:2421
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:12240
mysql_mutex_t LOCK_replica_trans_dep_tracker
Definition: mysqld.cc:1588
bool validate_authentication_policy(char *val)
Validate @authentication_policy variable value.
Definition: mysqld.cc:4673
ulong delayed_insert_timeout
Definition: mysqld.cc:1364
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1595
mysql_service_registry_t * srv_registry
Definition: mysqld.cc:2007
bool sha256_password_proxy_users
Definition: mysqld.h:238
bool dynamic_plugins_are_initialized
Flag indicating if dynamic plugins have been loaded.
Definition: mysqld.cc:1951
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:12064
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:11822
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:12590
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:12159
PSI_file_key key_file_trn
Definition: mysqld.cc:12103
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:750
uint ha_open_options
Definition: mysqld.h:264
bool opt_initialize
Definition: mysqld.cc:1227
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:12002
ulong delay_key_write_options
Definition: mysqld.cc:1325
char * my_bind_addr_str
Definition: mysqld.cc:1159
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1346
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:12580
handlerton * innodb_hton
Definition: mysqld.cc:1249
const char * show_comp_option_name[]
Definition: mysqld.cc:1029
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:12228
bool opt_log_replica_updates
Definition: mysqld.cc:1233
uint protocol_version
Definition: mysqld.cc:1326
PSI_mutex_key key_LOCK_delegate_connection_mutex
Definition: mysqld.cc:11845
PSI_file_key key_file_slow_log
Definition: mysqld.cc:12106
ulong opt_server_id_mask
Definition: mysqld.cc:1253
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1617
PSI_stage_info stage_query_end
Definition: mysqld.cc:12188
PSI_mutex_key key_source_info_thd_lock
Definition: mysqld.cc:11813
bool clone_recovery_error
True, if clone recovery has failed.
Definition: mysqld.cc:1306
char * default_tz_name
Definition: mysqld.cc:1482
ulonglong temptable_max_ram
Definition: mysqld.cc:1166
PSI_stage_info stage_replica_waiting_workers_to_exit
Definition: mysqld.cc:12211
bool using_udf_functions
Definition: mysqld.cc:1190
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:790
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1543
PSI_stage_info stage_replica_has_read_all_relay_log
Definition: mysqld.cc:12199
uint replica_rows_last_search_algorithm_used
Definition: mysqld.cc:1350
bool opt_no_dd_upgrade
Definition: mysqld.cc:1225
int init_common_variables()
Definition: mysqld.cc:4774
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:11988
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.h:338
struct st_VioSSLFd * ssl_acceptor_fd
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:11805
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:257
PSI_stage_info stage_statistics
Definition: mysqld.cc:12215
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:11288
PSI_file_key key_file_general_log
Definition: mysqld.cc:12105
ulong rpl_stop_replica_timeout
Definition: mysqld.cc:1371
mysql_mutex_t LOCK_manager
Definition: sql_manager.cc:59
PSI_mutex_key key_mutex_replica_reporting_capability_err_lock
Definition: mysqld.cc:11815
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:11823
char * opt_keyring_migration_source
Definition: mysqld.cc:1203
ulong opt_mts_replica_parallel_workers
Definition: mysqld.cc:1345
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_event_read
Definition: mysqld.cc:12206
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:12236
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:11949
const char * log_error_dest
Definition: mysqld.cc:1484
PSI_mutex_key key_source_info_run_lock
Definition: mysqld.cc:11811
PSI_file_key key_file_misc
Definition: mysqld.cc:12100
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:12163
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1563
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:12063
PSI_cond_key key_COND_active
Definition: mysqld.cc:11989
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:12221
const char * server_uuid_ptr
Definition: mysqld.cc:1469
bool opt_replica_compressed_protocol
Definition: mysqld.cc:1230
bool old_mode
compatibility option:
Definition: mysqld.cc:1241
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:12009
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:11831
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:11950
PSI_stage_info stage_queueing_source_event_to_the_relay_log
Definition: mysqld.cc:12189
mysql_component_t mysql_component_mysql_server
Definition: server_component.cc:807
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:11842
PSI_stage_info stage_update
Definition: mysqld.cc:12218
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:2397
void my_init_signals()
Definition: mysqld.cc:3510
ulonglong replica_type_conversions_options
Definition: mysqld.cc:1344
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:12153
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1589
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1491
ulong slave_trans_retries
Definition: mysqld.cc:1341
bool parse_authentication_policy(char *val, std::vector< std::string > &policy_list)
Parse @authentication_policy variable value.
Definition: mysqld.cc:4620
SHOW_VAR status_vars[]
Definition: mysqld.cc:9662
PSI_stage_info stage_checking_source_version
Definition: mysqld.cc:12156
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:12160
uint mysqld_port
Definition: mysqld.h:265
ulong opt_tc_log_size
Definition: mysqld.cc:1193
PSI_stage_info stage_replica_waiting_worker_to_free_events
Definition: mysqld.cc:12209
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_binlog_dump_request
Definition: mysqld.cc:12205
uint replica_net_timeout
Definition: mysqld.cc:1342
PSI_cond_key key_source_info_data_cond
Definition: mysqld.cc:11993
handlerton * myisam_hton
Definition: mysqld.cc:1248
PSI_stage_info stage_sending_binlog_event_to_replica
Definition: mysqld.cc:12197
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:12173
PSI_stage_info stage_suspending
Definition: mysqld.cc:12237
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:11804
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:12109
ulong table_def_size
Definition: mysqld.cc:1335
char system_time_zone_dst_off[30]
Definition: mysqld.h:300
int * get_remaining_argc()
Definition: mysqld.cc:1849
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1522
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1600
PSI_stage_info stage_system_lock
Definition: mysqld.cc:12217
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1562
ulong table_cache_size
Definition: mysqld.cc:1330
PSI_stage_info stage_replica_waiting_for_workers_to_process_queue
Definition: mysqld.cc:12204
mysql_rwlock_t LOCK_sys_init_replica
Definition: mysqld.cc:1590
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1362
uint opt_large_page_size
Definition: mysqld.cc:1268
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1369
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:12231
bool lower_case_file_system
Definition: mysqld.cc:1263
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:781
mysql_mutex_t LOCK_partial_revokes
Definition: mysqld.cc:1280
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_registration_on_source
Definition: mysqld.cc:12207
bool trust_function_creators
Definition: mysqld.h:236
PSI_stage_info stage_after_create
Definition: mysqld.cc:12151
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:11807
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:11832
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1487
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:12187
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:11830
void thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name)
Definition: mysqld.cc:1875
mysql_cond_t COND_server_started
Definition: mysqld.cc:1596
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:11821
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1539
const char * default_tmp_storage_engine
Definition: mysqld.cc:1165
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:12224
uint opt_server_id_bits
Definition: mysqld.cc:1252
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:12168
bool opt_replica_preserve_commit_order
Definition: mysqld.cc:1348
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:12222
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:11817
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:12214
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:12165
bool opt_skip_name_resolve
Definition: mysqld.cc:1186
const char * timestamp_type_names[]
Definition: mysqld.cc:1321
const char * first_keyword
Definition: mysqld.cc:1037
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:11824
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1494
bool opt_debugging
Definition: mysqld.cc:1151
PSI_mutex_key key_monitor_info_run_lock
Definition: mysqld.cc:11844
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:1176
char glob_hostname[HOSTNAME_LENGTH+1]
Definition: mysqld.cc:1486
PSI_mutex_key key_LOCK_thd_security_ctx
Definition: mysqld.cc:11808
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:12234
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1597
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:11946
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:11802
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:12235
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1468
PSI_cond_key key_monitor_info_run_cond
Definition: mysqld.cc:12011
char * opt_disabled_storage_engines
Definition: mysqld.cc:1251
bool opt_bin_log
Definition: mysqld.cc:1179
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1277
char * opt_log_error_suppression_list
Definition: mysqld.cc:1197
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1359
PSI_stage_info stage_replica_reconnecting_after_failed_event_read
Definition: mysqld.cc:12201
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:1507
bool opt_replica_sql_verify_checksum
Definition: mysqld.cc:1312
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:11806
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1476
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1593
char * opt_slow_logname
Definition: mysqld.h:276
Rpl_acf_configuration_handler * rpl_acf_configuration_handler
Definition: mysqld.cc:1535
PSI_file_key key_file_frm
Definition: mysqld.cc:12095
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:12180
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:12006
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:12171
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:1419
bool opt_log_unsafe_statements
Definition: mysqld.cc:1319
MYSQL_PLUGIN_IMPORT CHARSET_INFO * files_charset_info
Definition: mysqld.cc:1545
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:11826
bool opt_myisam_use_mmap
Definition: mysqld.h:186
ulong delayed_insert_limit
Definition: mysqld.cc:1364
ulong what_to_log
Definition: mysqld.cc:1337
bool opt_super_readonly
Definition: mysqld.h:209
char *** get_remaining_argv()
Definition: mysqld.cc:1851
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:12203
bool opt_validate_config
Definition: mysqld.cc:1047
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1560
ulong connect_timeout
Definition: mysqld.h:324
char * opt_keyring_migration_host
Definition: mysqld.cc:1200
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:12212
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1591
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:11742
uint mysqld_admin_port
Definition: mysqld.cc:1161
bool server_shutting_down
Definition: mysqld.cc:1633
ulonglong slave_rows_search_algorithms_options
Definition: mysqld.cc:1347
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:12232
ulong tc_log_max_pages_used
Definition: mysqld.h:259
ulong open_files_limit
Definition: mysqld.cc:1340
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:4526
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1274
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1918
mysql_mutex_t LOCK_global_conn_mem_limit
Definition: mysqld.cc:1625
ulong tablespace_def_size
Definition: mysqld.cc:1336
bool sp_automatic_privileges
Definition: mysqld.cc:1295
PSI_stage_info stage_end
Definition: mysqld.cc:12169
PSI_stage_info stage_registering_replica_on_source
Definition: mysqld.cc:12191
void thd_mem_cnt_free(THD *thd, size_t size)
Definition: mysqld.cc:1885
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1492
std::atomic< bool > offline_mode
Definition: mysqld.cc:1267
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:1573
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:12354
ulong tc_log_page_size
Definition: mysqld.h:259
bool opt_local_infile
Definition: mysqld.cc:1230
char * mysql_home_ptr
Definition: mysqld.cc:1688
char * lc_messages_dir_ptr
Definition: mysqld.cc:1490
const char * server_build_id_ptr
Definition: mysqld.cc:1472
PSI_file_key key_file_relaylog
Definition: mysqld.cc:12107
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:4561
const char * load_default_groups[]
Definition: program.cc:264
PSI_mutex_key key_mta_gaq_LOCK
Definition: mysqld.cc:11840
mysql_mutex_t LOCK_sql_replica_skip_counter
Definition: mysqld.cc:1586
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1563
ulong mts_parallel_option
Definition: mysqld.cc:1352
ulong prepared_stmt_count
Definition: mysqld.h:333
uint opt_mta_checkpoint_period
Definition: mysqld.h:258
handlerton * temptable_hton
Definition: mysqld.cc:1247
const char * binary_keyword
Definition: mysqld.h:372
uint default_password_lifetime
Definition: mysqld.cc:1269
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:11992
bool super_read_only
Definition: mysqld.cc:1255
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:1329
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:1414
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1520
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1354
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:12177
char * opt_log_error_services
Definition: mysqld.cc:1198
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:692
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1298
PSI_file_key key_file_loadfile
Definition: mysqld.cc:12097
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:12223
bool opt_noacl
Definition: mysqld.h:235
Time_zone * default_tz
Definition: mysqld.cc:1498
PSI_cond_key key_source_info_start_cond
Definition: mysqld.cc:11994
mysql_component_t mysql_component_performance_schema
Definition: pfs.cc:9929
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:11720
bool opt_old_style_user_limits
Definition: mysqld.cc:1285
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:1141
ulong slow_launch_time
Definition: mysqld.cc:1338
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2533
PSI_stage_info stage_replica_reconnecting_after_failed_registration_on_source
Definition: mysqld.cc:12202
bool opt_character_set_client_handshake
Definition: mysqld.cc:1187
PSI_stage_info stage_source_has_sent_all_binlog_to_replica
Definition: mysqld.cc:12183
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1499
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:12092
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:11827
query_id_t next_query_id()
Definition: mysqld.h:757
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:12008
PSI_cond_key key_gtid_ensure_index_cond
Definition: mysqld.cc:12007
bool opt_keyring_operations
Definition: mysqld.cc:1423
bool opt_replica_allow_batching
Definition: mysqld.cc:1235
PSI_socket_key key_socket_unix
Definition: mysqld.cc:12355
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:1503
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1474
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1275
ulong binlog_stmt_cache_disk_use
Definition: mysqld.h:311
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:12098
enum_binlog_error_action
Definition: mysqld.h:354
@ IGNORE_ERROR
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:356
@ ABORT_SERVER
Abort the server.
Definition: mysqld.h:358
char * opt_protocol_compression_algorithms
Definition: mysqld.cc:1501
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:11834
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:12004
bool opt_help
Definition: mysqld.cc:1047
bool clone_startup
True, if restarted from a cloned database.
Definition: mysqld.cc:1302
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1370
PSI_cond_key key_cond_mta_gaq
Definition: mysqld.cc:12005
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:11819
PSI_stage_info stage_killing_replica
Definition: mysqld.cc:12179
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1867
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:1562
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1598
PSI_stage_info stage_wait_on_commit_ticket
Definition: mysqld.cc:12247
bool mysql_native_password_proxy_users
Definition: mysqld.h:237
ulong max_digest_length
Definition: sql_digest.cc:49
handlerton * heap_hton
Definition: mysqld.cc:1246
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:12001
ulong binlog_error_action
Definition: mysqld.cc:1315
ulong stored_program_def_size
Definition: mysqld.cc:1334
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:11833
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:388
bool opt_large_pages
Definition: mysqld.cc:1264
PSI_stage_info stage_flushing_relay_log_and_source_info_repository
Definition: mysqld.cc:12174
const mysql_service_dynamic_loader_scheme_file_t * scheme_file_srv
Definition: mysqld.cc:2008
static void set_connection_events_loop_aborted(bool value)
Definition: mysqld.h:769
const double log_10[309]
Definition: mysqld.cc:1427
PSI_stage_info stage_changing_source
Definition: mysqld.cc:12155
bool opt_always_activate_granted_roles
Definition: mysqld.cc:1178
Source_IO_monitor * rpl_source_io_monitor
Definition: mysqld.cc:1536
ulong binlog_stmt_cache_size
Definition: mysqld.h:337
ulong opt_log_timestamps
Definition: mysqld.cc:1322
mysql_mutex_t LOCK_authentication_policy
Definition: mysqld.cc:1623
uint select_errors
Definition: mysqld.h:264
PSI_thread_key key_thread_handle_con_admin_sockets
Definition: mysqld.cc:12066
PSI_stage_info stage_rename
Definition: mysqld.cc:12193
ulonglong global_conn_mem_limit
Definition: mysqld.cc:1378
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:12108
char * pidfile_name_ptr
Definition: mysqld.h:278
std::atomic< int32 > atomic_replica_open_temp_tables
Definition: mysqld.cc:1339
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1477
bool opt_readonly
Definition: mysqld.h:208
ulong log_error_verbosity
Definition: mysqld.cc:1208
PSI_file_key key_file_hash_join
Definition: mysqld.cc:12112
ulong specialflag
Definition: mysqld.cc:1367
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1562
struct System_status_var global_status_var
Definition: mysqld.cc:1541
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:12246
PSI_file_key key_file_dbopt
Definition: mysqld.cc:12091
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:12239
const char * default_storage_engine
Definition: mysqld.cc:1164
PSI_stage_info stage_binlog_transaction_decompress
Definition: mysqld.cc:12242
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:11835
mysql_rwlock_t LOCK_server_shutting_down
Definition: mysqld.cc:1627
void set_mysqld_offline_mode(bool value)
Set offline mode with a given value.
Definition: mysqld.h:797
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:12162
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:1207
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:12061
PSI_file_key key_select_to_file
Definition: mysqld.cc:12093
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:1038
PSI_file_key key_file_tclog
Definition: mysqld.cc:12101
const char * binlog_error_action_list[]
Definition: mysqld.cc:1316
PSI_stage_info stage_preparing
Definition: mysqld.cc:12186
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:1056
PSI_stage_info stage_setup
Definition: mysqld.cc:12198
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:389
ulong max_binlog_size
Definition: mysqld.cc:1340
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1599
bool opt_large_files
Definition: mysqld.cc:1040
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:11841
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:1256
mysql_mutex_t LOCK_replica_net_timeout
Definition: mysqld.cc:1587
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:11829
PSI_cond_key key_cond_slave_worker_hash
Definition: mysqld.cc:12010
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:1546
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1425
bool opt_log_slow_replica_statements
Definition: mysqld.h:234
bool opt_partial_revokes
Definition: mysqld.cc:1272
PSI_mutex_key key_source_info_sleep_lock
Definition: mysqld.cc:11812
PSI_mutex_key key_LOCK_group_replication_connection_mutex
Definition: mysqld.cc:11846
ulong delayed_queue_size
Definition: mysqld.h:314
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2558
ulonglong global_conn_mem_counter
Definition: mysqld.cc:1379
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:1057
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1358
PSI_mutex_key key_mutex_replica_worker_hash
Definition: mysqld.cc:11843
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1959
char server_build_id[42]
Definition: build_id_test.cc:30
bool opt_binlog_expire_logs_auto_purge
Definition: mysqld.cc:1409
PSI_stage_info stage_init
Definition: mysqld.cc:12178
ulong locked_account_connection_count
Definition: mysqld.cc:1376
PSI_file_key key_file_binlog
Definition: mysqld.cc:12089
void reset_status_by_thd()
Definition: mysqld.cc:11791
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:12099
PSI_stage_info stage_rpl_failover_wait_before_next_fetch
Definition: mysqld.cc:12245
PSI_cond_key key_source_info_sleep_cond
Definition: mysqld.cc:11996
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:12184
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:11957
CHARSET_INFO * character_set_filesystem
Definition: mysqld.cc:1547
bool check_proxy_users
Definition: mysqld.cc:1286
PSI_cond_key key_source_info_rotate_cond
Definition: mysqld.cc:11997
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:11818
PSI_stage_info stage_explaining
Definition: mysqld.cc:12172
char * opt_mysql_tmpdir
Definition: mysqld.cc:1504
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1844
ulong max_relay_log_size
Definition: mysqld.h:342
ulong binlog_row_metadata
Definition: mysqld.cc:1310
bool persisted_globals_load
Definition: mysqld.cc:1421
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:11809
PSI_mutex_key key_mta_temp_table_LOCK
Definition: mysqld.cc:11839
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:12195
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:11828
bool relay_log_purge
Definition: mysqld.cc:1257
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:12166
char * opt_bin_logname
Definition: mysqld.h:276
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:11816
time_t server_start_time
Definition: mysqld.cc:1466
PSI_stage_info stage_waiting_for_source_update
Definition: mysqld.cc:12227
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1327
ulong current_pid
Definition: mysqld.cc:1403
bool locked_in_memory
Definition: mysqld.cc:1191
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:11999
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:12154
PSI_file_key key_file_fileparser
Definition: mysqld.cc:12094
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1516
ulong replica_exec_mode_options
Definition: mysqld.cc:1343
enum_delay_key_write
Definition: mysqld.h:267
@ DELAY_KEY_WRITE_ON
Definition: mysqld.h:269
@ DELAY_KEY_WRITE_NONE
Definition: mysqld.h:268
@ DELAY_KEY_WRITE_ALL
Definition: mysqld.h:270
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:1579
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1563
bool log_bin_supplied
Definition: mysqld.cc:1464
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2501
PSI_stage_info stage_flushing_relay_log_info_file
Definition: mysqld.cc:12175
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1408
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:12003
char * default_auth_plugin
Definition: mysqld.cc:1689
MYSQL_PLUGIN_IMPORT CHARSET_INFO * national_charset_info
Definition: mysqld.cc:1546
PSI_stage_info stage_connecting_to_source
Definition: mysqld.cc:12161
PSI_stage_info stage_rpl_failover_fetching_source_member_details
Definition: mysqld.cc:12243
PSI_stage_info stage_binlog_transaction_compress
Definition: mysqld.cc:12241
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:11945
PSI_file_key key_file_trg
Definition: mysqld.cc:12102
char * opt_init_file
Definition: mysqld.cc:1488
bool relay_log_recovery
Definition: mysqld.cc:1258
PSI_rwlock_key key_rwlock_gtid_mode_lock
Definition: mysqld.cc:1096
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:12090
PSI_cond_key key_COND_pool
Definition: mysqld.cc:11990
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:1182
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:12152
const char * opt_tc_log_file
Definition: mysqld.cc:1489
PSI_stage_info stage_rpl_failover_updating_source_member_details
Definition: mysqld.cc:12244
LEX_STRING opt_init_replica
Definition: mysqld.h:394
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:11947
struct my_option my_long_early_options[]
Definition: mysqld.cc:8848
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:12062
char * opt_keyring_migration_destination
Definition: mysqld.cc:1204
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1318
PSI_stage_info stage_starting
Definition: mysqld.cc:12238
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:1590
bool log_bin_use_v1_row_events
Definition: mysqld.cc:1372
struct System_variables max_system_variables
Definition: mysqld.cc:1540
char * opt_authentication_policy
Definition: mysqld.cc:1506
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:12604
bool update_authentication_policy()
Update @authentication_policy variable value.
Definition: mysqld.cc:4722
const char * opt_secure_file_priv
Definition: mysqld.cc:1260
PSI_mutex_key key_source_info_data_lock
Definition: mysqld.cc:11810
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1261
ulong binlog_cache_size
Definition: mysqld.cc:1353
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:12176
LEX_STRING opt_init_connect
Definition: mysqld.cc:1172
ulong binlog_checksum_options
Definition: mysqld.cc:1309
mysql_mutex_t LOCK_admin_tls_ctx_options
Definition: mysqld.cc:1279
ulong expire_logs_days
Definition: mysqld.cc:1407
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1314
bool mysqld_server_started
Definition: mysqld.cc:1635
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:12225
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:366
char * opt_general_logname
Definition: mysqld.cc:1675
ulong binlog_cache_use
Definition: mysqld.cc:1368
ulong max_connect_errors
Definition: mysqld.cc:1370
uint sync_masterinfo_period
Definition: mysqld.h:258
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:12196
PSI_stage_info stage_creating_table
Definition: mysqld.cc:12164
ulong binlog_cache_disk_use
Definition: mysqld.h:310
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1391
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1859
ulong binlog_row_event_max_size
Definition: mysqld.cc:1308
ulong flush_time
Definition: mysqld.h:332
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:12065
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:12192
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1278
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1357
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:12182
PSI_mutex_key key_source_info_rotate_lock
Definition: mysqld.cc:11814
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:11803
bool read_only
Definition: mysqld.cc:1254
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:12216
bool opt_mandatory_roles_cache
Definition: mysqld.cc:1177
PSI_stage_info stage_executing
Definition: mysqld.cc:12170
PSI_stage_info stage_replica_reconnecting_after_failed_binlog_dump_request
Definition: mysqld.cc:12200
PSI_stage_info stage_replica_waiting_worker_queue
Definition: mysqld.cc:12208
PSI_stage_info stage_replica_waiting_worker_to_release_partition
Definition: mysqld.cc:12210
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1487
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1297
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:11820
ulong schema_def_size
Definition: mysqld.cc:1333
ulong replica_max_allowed_packet
Definition: mysqld.cc:1355
PSI_file_key key_file_sdi
Definition: mysqld.cc:12111
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1612
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:4562
PSI_stage_info stage_waiting_for_the_replica_thread_to_advance_position
Definition: mysqld.cc:12233
uint opt_mta_checkpoint_group
Definition: mysqld.h:258
enum_replica_type_conversions
Definition: mysqld.h:200
@ REPLICA_TYPE_CONVERSIONS_ALL_UNSIGNED
Definition: mysqld.h:203
@ REPLICA_TYPE_CONVERSIONS_ALL_SIGNED
Definition: mysqld.h:204
@ REPLICA_TYPE_CONVERSIONS_ALL_NON_LOSSY
Definition: mysqld.h:202
@ REPLICA_TYPE_CONVERSIONS_ALL_LOSSY
Definition: mysqld.h:201
bool password_require_current
Definition: mysqld.cc:1270
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1276
bool opt_general_log_raw
Definition: mysqld.h:170
bool opt_safe_user_create
Definition: mysqld.cc:1231
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:12220
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:12356
bool opt_using_transactions
Definition: mysqld.cc:1192
PSI_stage_info stage_waiting_for_source_to_send_event
Definition: mysqld.cc:12226
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:11998
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1533
enum_slave_rows_search_algorithms
Definition: mysqld.h:212
@ SLAVE_ROWS_INDEX_SCAN
Definition: mysqld.h:214
@ SLAVE_ROWS_HASH_SCAN
Definition: mysqld.h:215
@ SLAVE_ROWS_TABLE_SCAN
Definition: mysqld.h:213
bool opt_verbose
Definition: mysql_ssl_rsa_setup.cc:129
PSI_cond_key key_source_info_stop_cond
Definition: mysqld.cc:11995
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:12157
PSI_rwlock_key key_rwlock_receiver_sid_lock
Definition: mysqld.cc:11948
PSI_stage_info stage_waiting_for_replica_mutex_on_exit
Definition: mysqld.cc:12229
PSI_cond_key key_COND_group_replication_connection_cond_var
Definition: mysqld.cc:12013
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:12000
PSI_stage_info stage_optimizing
Definition: mysqld.cc:12185
char system_time_zone_dst_on[30]
Definition: mysqld.cc:1475
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1488
long tc_heuristic_recover
Definition: mysqld.cc:1328
bool connection_events_loop_aborted()
Definition: mysqld.h:764
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:1493
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:264
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:311
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:2621
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