MySQL 9.1.0
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 "my_command.h"
41#include "my_compress.h"
42#include "my_getopt.h"
43#include "my_hostname.h" // HOSTNAME_LENGTH
44#include "my_inttypes.h"
45#include "my_io.h"
46#include "my_psi_config.h"
47#include "my_sharedlib.h"
48#include "my_sqlcommand.h" // SQLCOM_END
49#include "my_sys.h" // MY_TMPDIR
50#include "my_thread.h" // my_thread_attr_t
62#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 "aggregated_stats.h"
69#include "sql/sql_bitmap.h"
70#include "sql/sql_const.h" // UUID_LENGTH
71
75class THD;
76class Time_zone;
77struct MEM_ROOT;
78struct handlerton;
79
80#if MAX_INDEXES <= 64
81typedef Bitmap<64> Key_map; /* Used for finding keys */
82#elif MAX_INDEXES > 255
83#error "MAX_INDEXES values greater than 255 is not supported."
84#else
85typedef Bitmap<((MAX_INDEXES + 7) / 8 * 8)> Key_map; /* Used for finding keys */
86#endif
87
88/* Bits from testflag */
89#define TEST_PRINT_CACHED_TABLES 1
90#define TEST_NO_KEY_GROUP 2
91#define TEST_MIT_THREAD 4
92/*
93 TEST_BLOCKING is made obsolete and is not used any
94 where in the code base and is retained here so that
95 the other bit flag values are not changed.
96*/
97#define OBSOLETE_TEST_BLOCKING 8
98#define TEST_KEEP_TMP_TABLES 16
99#define TEST_READCHECK 64 /**< Force use of readcheck */
100#define TEST_NO_EXTRA 128
101#define TEST_CORE_ON_SIGNAL 256 /**< Give core if signal */
102#define TEST_NO_STACKTRACE 512
103#define TEST_SIGINT 1024 /**< Allow sigint on threads */
104#define TEST_SYNCHRONIZATION \
105 2048 /**< get server to do sleep in \
106 some places */
107#define TEST_DO_QUICK_LEAK_CHECK \
108 4096 /**< Do Valgrind leak check for \
109 each command. */
110#define TEST_NO_TEMP_TABLES \
111 8192 /**< No temp table engine is loaded, so use dummy costs. */
112
113#define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */
114#define SPECIAL_SKIP_SHOW_DB 4 /* Don't allow 'show db' */
115#define SPECIAL_NO_RESOLVE 64 /* Don't use gethostname */
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
155 SERVER_BOOTING, /* Server is not operational. It is starting */
156 SERVER_OPERATING, /* Server is fully initialized and operating */
157 SERVER_SHUTTING_DOWN /* Server is shutting down */
160
162extern bool opt_bin_log;
163extern bool opt_log_replica_updates;
164extern bool opt_log_unsafe_statements;
169extern bool opt_log_slow_extra;
171extern bool opt_skip_name_resolve;
172extern bool opt_help;
173extern bool opt_verbose;
174extern MYSQL_PLUGIN_IMPORT std::atomic<int32>
176extern long opt_upgrade_mode;
177extern bool opt_initialize;
178extern bool opt_safe_user_create;
181extern ulong replica_exec_mode_options;
185extern int32_t opt_regexp_time_limit;
186extern int32_t opt_regexp_stack_limit;
187#ifdef _WIN32
188extern bool opt_no_monitor;
189#endif // _WIN32
190extern bool opt_debugging;
191extern bool opt_validate_config;
192
200
203extern bool lower_case_file_system;
204
206
208
209#ifndef NDEBUG
211#endif
212extern ulong mts_parallel_option;
213#ifdef _WIN32
214extern bool opt_enable_named_pipe;
215extern char *named_pipe_full_access_group;
216extern bool opt_enable_shared_memory;
217extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
218#endif
219extern bool opt_allow_suspicious_udfs;
220extern const char *opt_secure_file_priv;
223extern bool trust_function_creators;
225#ifdef _WIN32
226extern const char *shared_memory_base_name;
227#endif
228extern const char *mysqld_unix_port;
229extern char *default_tz_name;
230extern Time_zone *default_tz;
231extern const char *default_storage_engine;
232extern const char *default_tmp_storage_engine;
235extern bool temptable_use_mmap;
236extern bool using_udf_functions;
237extern bool locked_in_memory;
238extern bool opt_using_transactions;
239extern ulong current_pid;
240extern ulong binlog_expire_logs_seconds;
245extern ulong tc_log_page_waits;
246extern bool relay_log_purge;
247extern bool relay_log_recovery;
248extern std::atomic<bool> offline_mode;
251
257extern ulong delay_key_write_options;
258
259extern ulong opt_log_timestamps;
260extern const char *timestamp_type_names[];
264extern uint default_password_lifetime;
265extern bool password_require_current;
266/*
267 @warning : The real value is in @ref partial_revokes. The @ref
268 opt_partial_revokes is just a tool to trick the Sys_var class into
269 operating on an atomic variable.
270
271 Thus : do not use or access @ref opt_partial_revokes in your code.
272 If you need the value of the flag please use the @ref partial_revokes
273 global.
274 @todo :
275 @ref opt_partial_revokes to be removed when the Sys_var classes can operate
276 safely on an atomic.
277 */
278extern bool opt_partial_revokes;
279extern char *my_bind_addr_str;
280extern char *my_admin_bind_addr_str;
281extern uint mysqld_admin_port;
283extern char glob_hostname[HOSTNAME_LENGTH + 1];
285extern char *opt_init_file;
286extern const char *opt_tc_log_file;
287extern char server_uuid[UUID_LENGTH + 1];
288extern const char *server_uuid_ptr;
289#if defined(HAVE_BUILD_ID_SUPPORT)
290extern char server_build_id[42];
291extern const char *server_build_id_ptr;
292#endif
293extern const double log_10[309];
296extern ulong aborted_threads;
297extern ulong delayed_insert_timeout;
299extern std::atomic<int32> atomic_replica_open_temp_tables;
300extern ulong slow_launch_time;
301extern ulong table_cache_size;
302extern ulong schema_def_size;
303extern ulong stored_program_def_size;
304extern ulong table_def_size;
305extern ulong tablespace_def_size;
307extern ulong max_digest_length;
310extern ulong slave_trans_retries;
311extern uint replica_net_timeout;
314extern ulong rpl_stop_replica_timeout;
317extern ulong open_files_limit;
318extern bool clone_startup;
319extern bool clone_recovery_error;
326extern ulong replica_max_allowed_packet;
327extern ulong binlog_row_event_max_size;
328extern ulong binlog_checksum_options;
329extern ulong binlog_row_metadata;
330extern const char *binlog_checksum_type_names[];
335extern ulong binlog_error_action;
338 /// Ignore the error and let server continue without binlogging
340 /// Abort the server
341 ABORT_SERVER = 1
343extern const char *binlog_error_action_list[];
344extern char *opt_authentication_policy;
345
346extern ulong stored_program_cache_size;
347extern ulong back_log;
349extern time_t server_start_time;
350extern char *opt_mysql_tmpdir;
353extern const char *show_comp_option_name[];
354extern const char *first_keyword, *binary_keyword;
355extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
356extern const char *in_left_expr_name;
357extern SHOW_VAR status_vars[];
361extern struct rand_struct sql_rand;
362extern handlerton *myisam_hton;
363extern handlerton *heap_hton;
365extern handlerton *innodb_hton;
366extern uint opt_server_id_bits;
367extern ulong opt_server_id_mask;
368extern const char *load_default_groups[];
369extern struct my_option my_long_early_options[];
373extern bool server_shutting_down;
376extern ulong connection_errors_internal;
377extern ulong connection_errors_peer_addr;
379extern char *opt_log_error_services;
381/** The size of the host_cache. */
382extern uint host_cache_size;
383extern ulong log_error_verbosity;
384
385extern bool persisted_globals_load;
386extern bool opt_keyring_operations;
388extern char *opt_keyring_migration_user;
389extern char *opt_keyring_migration_host;
394extern ulong opt_keyring_migration_port;
395
398
401extern std::atomic<long>
404
405/**
406 Variable to check if connection related options are set
407 as part of keyring migration.
408*/
409extern bool migrate_connect_options;
410
412
413extern thread_local MEM_ROOT **THR_MALLOC;
414
417
418#ifdef HAVE_PSI_INTERFACE
419
461
464
473
505
530
534
535#endif /* HAVE_PSI_INTERFACE */
536
537/*
538 MAINTAINER: Please keep this list in order, to limit merge collisions.
539 Hint: grep PSI_stage_info | sort -u
540*/
563extern PSI_stage_info
591extern PSI_stage_info
594extern PSI_stage_info
598extern PSI_stage_info
600extern PSI_stage_info
602extern PSI_stage_info
644#ifdef HAVE_PSI_STATEMENT_INTERFACE
645/**
646 Statement instrumentation keys (sql).
647 The last entry, at [SQLCOM_END], is for parsing errors.
648*/
650
651/**
652 Statement instrumentation keys (com).
653 The last entry, at [COM_END], is for packet errors.
654*/
656
657/**
658 Statement instrumentation key for replication.
659*/
661#endif /* HAVE_PSI_STATEMENT_INTERFACE */
662
663extern struct st_VioSSLFd *ssl_acceptor_fd;
664
665extern bool opt_large_pages;
666extern uint opt_large_page_size;
667extern char lc_messages_dir[FN_REFLEN];
668extern char *lc_messages_dir_ptr;
669extern const char *log_error_dest;
673
674extern long tc_heuristic_recover;
675
676extern ulong specialflag;
677extern size_t mysql_data_home_len;
678extern const char *mysql_real_data_home_ptr;
685extern bool log_bin_supplied;
688
689#define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
690
691/*
692 Server mutex locks and condition variables.
693 */
722
726
731
732extern ulong opt_ssl_fips_mode;
733
735
736extern sigset_t mysqld_signal_mask;
737/* query_id */
739extern std::atomic<query_id_t> atomic_global_query_id;
740
741int *get_remaining_argc();
742char ***get_remaining_argv();
743
744/* increment query_id and return it. */
745[[nodiscard]] inline query_id_t next_query_id() {
746 return ++atomic_global_query_id;
747}
748
749#define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
750
751/* Accessor function for _connection_events_loop_aborted flag */
752[[nodiscard]] inline bool connection_events_loop_aborted() {
754}
755
756/* only here because of unireg_init(). */
757static inline void set_connection_events_loop_aborted(bool value) {
759}
760
761/**
762
763 Check if --help option or --validate-config is specified.
764
765 @retval false Neither 'help' or 'validate-config' option is enabled.
766 @retval true Either 'help' or 'validate-config' or both options
767 are enabled.
768*/
770 return (opt_help || opt_validate_config);
771}
772
773/**
774 Get mysqld offline mode.
775
776 @return a bool indicating the offline mode status of the server.
777*/
778inline bool mysqld_offline_mode() { return offline_mode.load(); }
779
780/**
781 Set offline mode with a given value
782
783 @param value true or false indicating the offline mode status of server.
784*/
785inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
786
787/**
788 Get status partial_revokes on server
789
790 @return a bool indicating partial_revokes status of the server.
791 @retval true Parital revokes is ON
792 @retval flase Partial revokes is OFF
793*/
795
796/**
797 Set partial_revokes with a given value
798
799 @param value true or false indicating the status of partial revokes
800 turned ON/OFF on server.
801*/
802void set_mysqld_partial_revokes(bool value);
803
805
806#ifdef _WIN32
807
808bool is_windows_service();
810bool update_named_pipe_full_access_group(const char *new_group_name);
811
812#endif
813
815extern bool opt_mandatory_roles_cache;
817
820/* This variable is a registry handler, defined in mysql_server component and
821 used as a output parameter for minimal chassis. */
822extern SERVICE_TYPE_NO_CONST(registry) * srv_registry;
824/* These global variables which are defined and used in
825 mysql_server component */
826extern SERVICE_TYPE(dynamic_loader_scheme_file) * scheme_file_srv;
827extern SERVICE_TYPE(dynamic_loader) * dynamic_loader_srv;
830
833
835
837
838/**
839 Stores the value of argc during server start up that contains
840 the count of arguments specified by the user in the
841 configuration files and command line.
842 The server refers the cached argument count during
843 plugin and component installation.
844*/
845extern int argc_cached;
846/**
847 Stores the value of argv during server start up that contains
848 the vector of arguments specified by the user in the
849 configuration files and command line.
850 The server refers the cached argument vector during
851 plugin and component installation.
852*/
853extern char **argv_cached;
854
855/// Stores the last time the warning for non-composable engine is emitted
856extern std::atomic<time_t> last_mixed_non_transactional_engine_warning;
857/// The time period for which no warning for non-composable engines should
858/// be written to the error log after a similar warning was written
859
861#endif /* MYSQLD_INCLUDED */
int64 query_id_t
Definition: binlog.h:72
Definition: sql_bitmap.h:154
Definition: sql_bitmap.h:43
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:533
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:36
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:190
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1603
char * opt_relay_logname
Definition: mysqld.h:262
bool server_id_supplied
Definition: mysqld.h:161
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:208
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:1253
void persisted_variables_refresh_keyring_support()
Definition: mysqld.cc:1845
uint sync_relaylog_period
Definition: mysqld.h:242
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:14044
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:13925
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:13770
ulong aborted_threads
Definition: mysqld.cc:1382
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1516
PSI_stage_info stage_flushing_applier_metadata
Definition: mysqld.cc:14109
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:14115
PSI_stage_info stage_waiting_for_replica_thread_to_start
Definition: mysqld.cc:14164
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:14092
ulong opt_keyring_migration_port
Definition: mysqld.cc:1229
PSI_stage_info stage_updating
Definition: mysqld.cc:14153
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1278
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:14128
ulonglong conn_memory_status_limit
Definition: mysqld.cc:1400
Deployed_components * g_deployed_components
This variable holds handle to the object that's responsible for loading/unloading components from man...
Definition: mysqld.cc:1407
PSI_file_key key_file_load
Definition: mysqld.cc:14030
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:14147
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:13759
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:14101
bool opt_source_verify_checksum
Definition: mysqld.cc:1329
PSI_file_key key_file_init
Definition: mysqld.cc:14038
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:14124
struct aggregated_stats global_aggregated_stats
Definition: mysqld.cc:1550
uint test_flags
Definition: mysqld.cc:1341
void kill_mysql(void)
Definition: mysqld.cc:2526
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:14174
mysql_mutex_t LOCK_replica_trans_dep_tracker
Definition: mysqld.cc:1597
ulong delayed_insert_timeout
Definition: mysqld.cc:1383
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1604
mysql_service_registry_t * srv_registry
Definition: mysqld.cc:2008
bool sha256_password_proxy_users
Definition: mysqld.h:224
bool dynamic_plugins_are_initialized
Flag indicating if dynamic plugins have been loaded.
Definition: mysqld.cc:1954
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:13998
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:13756
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:14526
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:14093
PSI_file_key key_file_trn
Definition: mysqld.cc:14037
mysql_cond_t COND_manager
Definition: sql_manager.cc:60
char * opt_keyring_migration_socket
Definition: mysqld.cc:1226
int64 query_id_t
Definition: mysqld.h:738
uint ha_open_options
Definition: mysqld.h:249
bool opt_initialize
Definition: mysqld.cc:1251
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:13936
ulong delay_key_write_options
Definition: mysqld.cc:1343
char * my_bind_addr_str
Definition: mysqld.cc:1184
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1366
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:14516
handlerton * innodb_hton
Definition: mysqld.cc:1268
const char * show_comp_option_name[]
Definition: mysqld.cc:1054
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:14162
bool opt_log_replica_updates
Definition: mysqld.cc:1257
uint protocol_version
Definition: mysqld.cc:1344
PSI_mutex_key key_LOCK_delegate_connection_mutex
Definition: mysqld.cc:13779
PSI_file_key key_file_slow_log
Definition: mysqld.cc:14040
ulong opt_server_id_mask
Definition: mysqld.cc:1272
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1626
PSI_stage_info stage_query_end
Definition: mysqld.cc:14122
PSI_mutex_key key_source_info_thd_lock
Definition: mysqld.cc:13747
bool clone_recovery_error
True, if clone recovery has failed.
Definition: mysqld.cc:1324
char * default_tz_name
Definition: mysqld.cc:1498
MYSQL_PLUGIN_IMPORT bool mysqld_server_started
Definition: mysqld.h:370
ulonglong temptable_max_ram
Definition: mysqld.cc:1191
PSI_stage_info stage_replica_waiting_workers_to_exit
Definition: mysqld.cc:14145
bool using_udf_functions
Definition: mysqld.cc:1214
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:778
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1552
PSI_stage_info stage_replica_has_read_all_relay_log
Definition: mysqld.cc:14133
uint replica_rows_last_search_algorithm_used
Definition: mysqld.cc:1369
int init_common_variables()
Definition: mysqld.cc:6520
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:13922
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.h:321
struct st_VioSSLFd * ssl_acceptor_fd
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:13739
long opt_upgrade_mode
Definition: mysqld.cc:1250
char * my_admin_bind_addr_str
Definition: mysqld.cc:1185
uint sync_relayloginfo_period
Definition: mysqld.h:242
PSI_stage_info stage_statistics
Definition: mysqld.cc:14149
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:13237
PSI_file_key key_file_general_log
Definition: mysqld.cc:14039
const mysql_service_registry_registration_t * registry_registration_no_lock
ulong rpl_stop_replica_timeout
Definition: mysqld.cc:1390
mysql_mutex_t LOCK_manager
Definition: sql_manager.cc:59
PSI_mutex_key key_mutex_replica_reporting_capability_err_lock
Definition: mysqld.cc:13749
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:13757
char * opt_keyring_migration_source
Definition: mysqld.cc:1227
ulong opt_mts_replica_parallel_workers
Definition: mysqld.cc:1365
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_event_read
Definition: mysqld.cc:14140
char * opt_keyring_migration_user
Definition: mysqld.cc:1223
Bitmap< 64 > Key_map
Definition: mysqld.h:78
PSI_stage_info stage_worker_waiting_for_commit_parent
Definition: mysqld.cc:14170
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:13883
const char * log_error_dest
Definition: mysqld.cc:1500
PSI_mutex_key key_source_info_run_lock
Definition: mysqld.cc:13745
PSI_file_key key_file_misc
Definition: router_mysqlclient_exports.cc:29
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:14097
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1572
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:13997
PSI_cond_key key_COND_active
Definition: mysqld.cc:13923
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:14155
const char * server_uuid_ptr
Definition: mysqld.cc:1485
bool opt_replica_compressed_protocol
Definition: mysqld.cc:1254
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:13943
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:13765
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:13884
PSI_stage_info stage_queueing_source_event_to_the_relay_log
Definition: mysqld.cc:14123
mysql_component_t mysql_component_mysql_server
Definition: server_component.cc:1217
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:13776
PSI_stage_info stage_update
Definition: mysqld.cc:14152
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:2502
void my_init_signals()
Definition: mysqld.cc:3665
ulonglong replica_type_conversions_options
Definition: mysqld.cc:1364
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:14087
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1598
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1507
ulong slave_trans_retries
Definition: mysqld.cc:1361
SHOW_VAR status_vars[]
Definition: mysqld.cc:11445
PSI_stage_info stage_checking_source_version
Definition: mysqld.cc:14090
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:14094
uint mysqld_port
Definition: mysqld.h:250
ulong opt_tc_log_size
Definition: mysqld.cc:1217
PSI_stage_info stage_replica_waiting_worker_to_free_events
Definition: mysqld.cc:14143
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_binlog_dump_request
Definition: mysqld.cc:14139
uint replica_net_timeout
Definition: mysqld.cc:1362
PSI_cond_key key_source_info_data_cond
Definition: mysqld.cc:13927
handlerton * myisam_hton
Definition: mysqld.cc:1267
PSI_stage_info stage_sending_binlog_event_to_replica
Definition: mysqld.cc:14131
bool temptable_use_mmap
Definition: mysqld.cc:1193
bool opt_general_log
Definition: mysqld.cc:1205
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
Definition: mysqld.cc:14107
PSI_stage_info stage_suspending
Definition: mysqld.cc:14171
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:13738
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:14043
ulong table_def_size
Definition: mysqld.cc:1355
char system_time_zone_dst_off[30]
Definition: mysqld.h:284
int * get_remaining_argc()
Definition: mysqld.cc:1854
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1530
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1609
PSI_stage_info stage_system_lock
Definition: mysqld.cc:14151
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1571
ulong table_cache_size
Definition: mysqld.cc:1348
PSI_stage_info stage_replica_waiting_for_workers_to_process_queue
Definition: mysqld.cc:14138
mysql_rwlock_t LOCK_sys_init_replica
Definition: mysqld.cc:1599
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1381
uint opt_large_page_size
Definition: mysqld.cc:1287
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1388
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:14165
bool lower_case_file_system
Definition: mysqld.cc:1282
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:769
mysql_mutex_t LOCK_partial_revokes
Definition: mysqld.cc:1299
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_registration_on_source
Definition: mysqld.cc:14141
bool trust_function_creators
Definition: mysqld.cc:1304
std::atomic< long > atomic_count_hit_query_past_conn_mem_status_limit
Definition: mysqld.cc:1401
PSI_stage_info stage_after_create
Definition: mysqld.cc:14085
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:13741
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:13766
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1503
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:14121
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:13764
void thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name)
Definition: mysqld.cc:1880
mysql_cond_t COND_server_started
Definition: mysqld.cc:1605
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:13755
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1547
const char * default_tmp_storage_engine
Definition: mysqld.cc:1190
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:14158
uint opt_server_id_bits
Definition: mysqld.cc:1271
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:14102
bool opt_replica_preserve_commit_order
Definition: mysqld.cc:1367
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:14156
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:13751
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:14148
PSI_rwlock_key key_rwlock_receiver_tsid_lock
Definition: mysqld.cc:13882
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:14099
bool opt_skip_name_resolve
Definition: mysqld.cc:1211
const char * timestamp_type_names[]
Definition: mysqld.cc:1339
const char * first_keyword
Definition: mysqld.cc:1062
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:13758
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1510
bool opt_debugging
Definition: mysqld.cc:1176
PSI_mutex_key key_monitor_info_run_lock
Definition: mysqld.cc:13778
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:1201
char glob_hostname[HOSTNAME_LENGTH+1]
Definition: mysqld.cc:1502
PSI_mutex_key key_LOCK_thd_security_ctx
Definition: mysqld.cc:13742
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:14168
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1606
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:13880
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:13736
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:14169
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1484
PSI_cond_key key_monitor_info_run_cond
Definition: mysqld.cc:13945
char * opt_disabled_storage_engines
Definition: mysqld.cc:1270
bool opt_bin_log
Definition: mysqld.cc:1204
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1296
char * opt_log_error_suppression_list
Definition: mysqld.cc:1221
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1378
PSI_stage_info stage_replica_reconnecting_after_failed_event_read
Definition: mysqld.cc:14135
const mysql_service_dynamic_loader_t * dynamic_loader_srv
Definition: persistent_dynamic_loader.cc:77
bool opt_replica_sql_verify_checksum
Definition: mysqld.cc:1330
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:13740
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1492
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1602
char * opt_slow_logname
Definition: mysqld.h:261
Rpl_acf_configuration_handler * rpl_acf_configuration_handler
Definition: mysqld.cc:1543
PSI_file_key key_file_frm
Definition: mysqld.cc:14029
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:14114
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:13940
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:14105
const uint16_t mixed_non_transactional_engine_warning_period
The time period for which no warning for non-composable engines should be written to the error log af...
Definition: mysqld.h:860
ulonglong temptable_max_mmap
Definition: mysqld.cc:1192
bool opt_log_unsafe_statements
Definition: mysqld.cc:1337
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:13760
bool opt_myisam_use_mmap
Definition: mysqld.h:179
ulong delayed_insert_limit
Definition: mysqld.cc:1383
ulong what_to_log
Definition: mysqld.cc:1357
bool opt_super_readonly
Definition: mysqld.h:202
char *** get_remaining_argv()
Definition: mysqld.cc:1856
bool migrate_connect_options
Variable to check if connection related options are set as part of keyring migration.
Definition: mysqld.cc:1230
bool opt_log_slow_extra
Definition: mysqld.cc:1209
enum_server_operational_state
Definition: mysqld.h:154
@ SERVER_OPERATING
Definition: mysqld.h:156
@ SERVER_BOOTING
Definition: mysqld.h:155
@ SERVER_SHUTTING_DOWN
Definition: mysqld.h:157
PSI_stage_info stage_replica_waiting_event_from_coordinator
Definition: mysqld.cc:14137
bool opt_validate_config
Definition: mysqld.cc:1072
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1569
ulong connect_timeout
Definition: mysqld.h:308
char * opt_keyring_migration_host
Definition: mysqld.cc:1224
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:14146
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1600
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:13676
uint mysqld_admin_port
Definition: mysqld.cc:1186
bool server_shutting_down
Definition: mysqld.cc:1642
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:14166
ulong tc_log_max_pages_used
Definition: mysqld.h:244
ulong open_files_limit
Definition: mysqld.cc:1360
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:4676
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1293
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1921
mysql_mutex_t LOCK_global_conn_mem_limit
Definition: mysqld.cc:1634
ulong tablespace_def_size
Definition: mysqld.cc:1356
bool sp_automatic_privileges
Definition: mysqld.cc:1313
PSI_stage_info stage_end
Definition: mysqld.cc:14103
PSI_stage_info stage_registering_replica_on_source
Definition: mysqld.cc:14125
void thd_mem_cnt_free(THD *thd, size_t size)
Definition: mysqld.cc:1890
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1508
std::atomic< bool > offline_mode
Definition: mysqld.cc:1286
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:1582
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:14288
ulong tc_log_page_size
Definition: mysqld.h:244
bool opt_local_infile
Definition: mysqld.cc:1254
char * mysql_home_ptr
Definition: mysqld.cc:1690
char * lc_messages_dir_ptr
Definition: mysqld.cc:1506
const char * server_build_id_ptr
Definition: mysqld.cc:1488
PSI_file_key key_file_relaylog
Definition: mysqld.cc:14041
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:4713
const char * load_default_groups[]
Definition: mysqld.cc:4113
PSI_mutex_key key_mta_gaq_LOCK
Definition: mysqld.cc:13774
mysql_mutex_t LOCK_sql_replica_skip_counter
Definition: mysqld.cc:1595
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1572
PSI_stage_info stage_flushing_applier_and_connection_metadata
Definition: mysqld.cc:14108
ulong mts_parallel_option
Definition: mysqld.cc:1371
ulong prepared_stmt_count
Definition: mysqld.h:316
uint opt_mta_checkpoint_period
Definition: mysqld.h:243
handlerton * temptable_hton
Definition: mysqld.cc:1266
const char * binary_keyword
Definition: mysqld.h:354
uint default_password_lifetime
Definition: mysqld.cc:1288
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:13926
bool super_read_only
Definition: mysqld.cc:1274
int argc_cached
Stores the value of argc during server start up that contains the count of arguments specified by the...
Definition: mysqld.cc:1236
ulong back_log
Definition: mysqld.cc:1347
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:1435
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1528
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1373
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:14111
char * opt_log_error_services
Definition: mysqld.cc:1222
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:680
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1316
PSI_file_key key_file_loadfile
Definition: mysqld.cc:14031
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:14157
std::atomic< time_t > last_mixed_non_transactional_engine_warning
Stores the last time the warning for non-composable engine is emitted.
Definition: mysqld.cc:1483
bool opt_noacl
Definition: mysqld.h:222
Time_zone * default_tz
Definition: mysqld.cc:1514
PSI_cond_key key_source_info_start_cond
Definition: mysqld.cc:13928
mysql_component_t mysql_component_performance_schema
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:13654
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:1166
ulong slow_launch_time
Definition: mysqld.cc:1358
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2678
PSI_stage_info stage_replica_reconnecting_after_failed_registration_on_source
Definition: mysqld.cc:14136
PSI_stage_info stage_source_has_sent_all_binlog_to_replica
Definition: mysqld.cc:14117
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1515
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:14026
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:13761
query_id_t next_query_id()
Definition: mysqld.h:745
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:13942
PSI_cond_key key_gtid_ensure_index_cond
Definition: mysqld.cc:13941
bool opt_keyring_operations
Definition: mysqld.cc:1439
bool opt_replica_allow_batching
Definition: mysqld.cc:1259
PSI_socket_key key_socket_unix
Definition: mysqld.cc:14289
ulonglong log_output_options
Definition: mysqld.cc:1206
bool opt_persist_sensitive_variables_in_plaintext
Definition: mysqld.cc:1235
const char * mysqld_unix_port
Definition: mysqld.cc:1519
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1490
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1294
ulong binlog_stmt_cache_disk_use
Definition: mysqld.h:295
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:14032
enum_binlog_error_action
Definition: mysqld.h:337
@ IGNORE_ERROR
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:339
@ ABORT_SERVER
Abort the server.
Definition: mysqld.h:341
char * opt_protocol_compression_algorithms
Definition: mysqld.cc:1517
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:13768
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:13938
bool opt_help
Definition: mysqld.cc:1072
bool clone_startup
True, if restarted from a cloned database.
Definition: mysqld.cc:1320
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1389
PSI_cond_key key_cond_mta_gaq
Definition: mysqld.cc:13939
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:13753
PSI_stage_info stage_killing_replica
Definition: mysqld.cc:14113
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1872
ulong opt_log_throttle_queries_not_using_indexes
Definition: mysqld.cc:1208
char * opt_keyring_migration_password
Definition: mysqld.cc:1225
mysql_mutex_t LOCK_crypt
Definition: mysqld.cc:1571
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1607
PSI_stage_info stage_wait_on_commit_ticket
Definition: mysqld.cc:14181
ulong max_digest_length
Definition: sql_digest.cc:50
handlerton * heap_hton
Definition: mysqld.cc:1265
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:13935
ulong binlog_error_action
Definition: mysqld.cc:1333
ulong stored_program_def_size
Definition: mysqld.cc:1354
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:13767
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:371
bool opt_large_pages
Definition: mysqld.cc:1283
ulonglong global_conn_memory_status_limit
Definition: mysqld.cc:1397
const mysql_service_dynamic_loader_scheme_file_t * scheme_file_srv
Definition: mysqld.cc:2014
static void set_connection_events_loop_aborted(bool value)
Definition: mysqld.h:757
const double log_10[309]
Definition: mysqld.cc:1443
PSI_stage_info stage_changing_source
Definition: mysqld.cc:14089
bool opt_always_activate_granted_roles
Definition: mysqld.cc:1203
Source_IO_monitor * rpl_source_io_monitor
Definition: mysqld.cc:1544
ulong binlog_stmt_cache_size
Definition: mysqld.h:320
ulong opt_log_timestamps
Definition: mysqld.cc:1340
mysql_mutex_t LOCK_authentication_policy
Definition: mysqld.cc:1632
uint select_errors
Definition: mysqld.h:249
PSI_thread_key key_thread_handle_con_admin_sockets
Definition: mysqld.cc:14000
PSI_stage_info stage_rename
Definition: mysqld.cc:14127
ulonglong global_conn_mem_limit
Definition: mysqld.cc:1396
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:14042
char * pidfile_name_ptr
Definition: mysqld.h:263
std::atomic< int32 > atomic_replica_open_temp_tables
Definition: mysqld.cc:1359
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1493
bool opt_readonly
Definition: mysqld.h:201
ulong log_error_verbosity
Definition: mysqld.cc:1232
PSI_file_key key_file_hash_join
Definition: mysqld.cc:14046
ulong specialflag
Definition: mysqld.cc:1386
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1571
struct System_status_var global_status_var
Definition: mysqld.cc:1549
bool opt_skip_show_db
Definition: mysqld.h:170
const char * binlog_checksum_type_names[]
BINLOG_CHECKSUM variable.
Definition: log_event.cc:216
PSI_stage_info stage_communication_delegation
Definition: mysqld.cc:14180
PSI_file_key key_file_dbopt
Definition: mysqld.cc:14025
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:14173
const char * default_storage_engine
Definition: mysqld.cc:1189
PSI_stage_info stage_binlog_transaction_decompress
Definition: mysqld.cc:14176
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:13769
mysql_rwlock_t LOCK_server_shutting_down
Definition: mysqld.cc:1636
void set_mysqld_offline_mode(bool value)
Set offline mode with a given value.
Definition: mysqld.h:785
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:14096
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:1231
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:13995
PSI_file_key key_select_to_file
Definition: mysqld.cc:14027
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:1063
PSI_file_key key_file_tclog
Definition: mysqld.cc:14035
const char * binlog_error_action_list[]
Definition: mysqld.cc:1334
PSI_stage_info stage_preparing
Definition: mysqld.cc:14120
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:1081
PSI_stage_info stage_setup
Definition: mysqld.cc:14132
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:372
ulong max_binlog_size
Definition: mysqld.cc:1360
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1608
bool opt_large_files
Definition: mysqld.cc:1065
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:13775
char ** argv_cached
Stores the value of argv during server start up that contains the vector of arguments specified by th...
Definition: mysqld.cc:1237
bool opt_require_secure_transport
Definition: mysqld.cc:1275
mysql_mutex_t LOCK_replica_net_timeout
Definition: mysqld.cc:1596
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:13763
PSI_cond_key key_cond_slave_worker_hash
Definition: mysqld.cc:13944
MYSQL_PLUGIN_IMPORT std::atomic< int32 > connection_events_loop_aborted_flag
Definition: mysqld.cc:1218
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1441
bool opt_log_slow_replica_statements
Definition: mysqld.h:221
bool opt_partial_revokes
Definition: mysqld.cc:1291
PSI_mutex_key key_source_info_sleep_lock
Definition: mysqld.cc:13746
PSI_mutex_key key_LOCK_group_replication_connection_mutex
Definition: mysqld.cc:13780
ulong delayed_queue_size
Definition: mysqld.h:298
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2703
ulonglong global_conn_mem_counter
Definition: mysqld.cc:1398
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:1082
mysql_service_registry_t * srv_registry_no_lock
Definition: mysqld.cc:2009
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1377
PSI_mutex_key key_mutex_replica_worker_hash
Definition: mysqld.cc:13777
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:1430
PSI_stage_info stage_init
Definition: mysqld.cc:14112
ulong locked_account_connection_count
Definition: mysqld.cc:1394
PSI_file_key key_file_binlog
Definition: mysqld.cc:14023
void reset_status_by_thd()
Definition: mysqld.cc:13725
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:14033
PSI_stage_info stage_rpl_failover_wait_before_next_fetch
Definition: mysqld.cc:14179
PSI_cond_key key_source_info_sleep_cond
Definition: mysqld.cc:13930
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:14118
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:13891
bool check_proxy_users
Definition: mysqld.cc:1305
PSI_cond_key key_source_info_rotate_cond
Definition: mysqld.cc:13931
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:13752
PSI_stage_info stage_explaining
Definition: mysqld.cc:14106
char * opt_mysql_tmpdir
Definition: mysqld.cc:1520
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1849
ulong max_relay_log_size
Definition: mysqld.h:325
ulong binlog_row_metadata
Definition: mysqld.cc:1328
bool persisted_globals_load
Definition: mysqld.cc:1437
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:13743
PSI_mutex_key key_mta_temp_table_LOCK
Definition: mysqld.cc:13773
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:14129
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:13762
bool relay_log_purge
Definition: mysqld.cc:1276
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:14100
char * opt_bin_logname
Definition: mysqld.h:261
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:13750
time_t server_start_time
Definition: mysqld.cc:1482
PSI_stage_info stage_waiting_for_source_update
Definition: mysqld.cc:14161
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1345
ulong current_pid
Definition: mysqld.cc:1425
bool locked_in_memory
Definition: mysqld.cc:1215
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:13933
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:14088
PSI_file_key key_file_fileparser
Definition: mysqld.cc:14028
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1525
ulong replica_exec_mode_options
Definition: mysqld.cc:1363
enum_delay_key_write
Definition: mysqld.h:252
@ DELAY_KEY_WRITE_ON
Definition: mysqld.h:254
@ DELAY_KEY_WRITE_NONE
Definition: mysqld.h:253
@ DELAY_KEY_WRITE_ALL
Definition: mysqld.h:255
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:1588
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1572
bool log_bin_supplied
Definition: mysqld.cc:1480
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2608
const mysql_service_registry_registration_t * registry_registration
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1429
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:13937
PSI_stage_info stage_connecting_to_source
Definition: mysqld.cc:14095
std::atomic< long > atomic_count_hit_query_past_global_conn_mem_status_limit
Definition: mysqld.cc:1399
PSI_stage_info stage_rpl_failover_fetching_source_member_details
Definition: mysqld.cc:14177
PSI_stage_info stage_binlog_transaction_compress
Definition: mysqld.cc:14175
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:13879
PSI_file_key key_file_trg
Definition: mysqld.cc:14036
char * opt_init_file
Definition: mysqld.cc:1504
bool relay_log_recovery
Definition: mysqld.cc:1277
PSI_rwlock_key key_rwlock_gtid_mode_lock
Definition: mysqld.cc:1121
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:14024
PSI_cond_key key_COND_pool
Definition: mysqld.cc:13924
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:1207
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:14086
const char * opt_tc_log_file
Definition: mysqld.cc:1505
PSI_stage_info stage_rpl_failover_updating_source_member_details
Definition: mysqld.cc:14178
LEX_STRING opt_init_replica
Definition: mysqld.h:375
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:13881
struct my_option my_long_early_options[]
Definition: mysqld.cc:10610
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:13996
char * opt_keyring_migration_destination
Definition: mysqld.cc:1228
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1336
PSI_stage_info stage_starting
Definition: mysqld.cc:14172
bool opt_slow_log
Definition: mysqld.h:165
ulong tc_log_page_waits
Definition: tc_log.cc:307
mysql_rwlock_t LOCK_sys_init_connect
Definition: mysqld.cc:1599
struct System_variables max_system_variables
Definition: mysqld.cc:1548
char * opt_authentication_policy
Definition: mysqld.cc:1522
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:14540
const char * opt_secure_file_priv
Definition: mysqld.cc:1279
PSI_mutex_key key_source_info_data_lock
Definition: mysqld.cc:13744
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1280
ulong binlog_cache_size
Definition: mysqld.cc:1372
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:14110
LEX_STRING opt_init_connect
Definition: mysqld.cc:1197
ulong binlog_checksum_options
Definition: mysqld.cc:1327
mysql_mutex_t LOCK_admin_tls_ctx_options
Definition: mysqld.cc:1298
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1332
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:14159
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:348
char * opt_general_logname
Definition: mysqld.cc:1682
ulong binlog_cache_use
Definition: mysqld.cc:1387
ulong max_connect_errors
Definition: mysqld.cc:1389
uint sync_masterinfo_period
Definition: mysqld.h:243
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:14130
PSI_stage_info stage_creating_table
Definition: mysqld.cc:14098
ulong binlog_cache_disk_use
Definition: mysqld.h:294
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1413
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1864
ulong binlog_row_event_max_size
Definition: mysqld.cc:1326
ulong flush_time
Definition: mysqld.h:315
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:13999
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:14126
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1297
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1376
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:14116
PSI_mutex_key key_source_info_rotate_lock
Definition: mysqld.cc:13748
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:13737
bool read_only
Definition: mysqld.cc:1273
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:14150
bool opt_mandatory_roles_cache
Definition: mysqld.cc:1202
PSI_stage_info stage_executing
Definition: mysqld.cc:14104
PSI_stage_info stage_replica_reconnecting_after_failed_binlog_dump_request
Definition: mysqld.cc:14134
PSI_stage_info stage_replica_waiting_worker_queue
Definition: mysqld.cc:14142
PSI_stage_info stage_replica_waiting_worker_to_release_partition
Definition: mysqld.cc:14144
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1503
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1315
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:13754
ulong schema_def_size
Definition: mysqld.cc:1353
ulong replica_max_allowed_packet
Definition: mysqld.cc:1374
PSI_file_key key_file_sdi
Definition: mysqld.cc:14045
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1621
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:4714
PSI_stage_info stage_waiting_for_the_replica_thread_to_advance_position
Definition: mysqld.cc:14167
uint opt_mta_checkpoint_group
Definition: mysqld.h:243
enum_replica_type_conversions
Definition: mysqld.h:193
@ REPLICA_TYPE_CONVERSIONS_ALL_UNSIGNED
Definition: mysqld.h:196
@ REPLICA_TYPE_CONVERSIONS_ALL_SIGNED
Definition: mysqld.h:197
@ REPLICA_TYPE_CONVERSIONS_ALL_NON_LOSSY
Definition: mysqld.h:195
@ REPLICA_TYPE_CONVERSIONS_ALL_LOSSY
Definition: mysqld.h:194
bool password_require_current
Definition: mysqld.cc:1289
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1295
bool opt_general_log_raw
Definition: mysqld.h:165
bool opt_safe_user_create
Definition: mysqld.cc:1255
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:14154
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:14290
bool opt_using_transactions
Definition: mysqld.cc:1216
PSI_stage_info stage_waiting_for_source_to_send_event
Definition: mysqld.cc:14160
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:13932
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1541
bool opt_verbose
Definition: mysqld.cc:1072
PSI_cond_key key_source_info_stop_cond
Definition: mysqld.cc:13929
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:14091
PSI_stage_info stage_waiting_for_replica_mutex_on_exit
Definition: mysqld.cc:14163
PSI_cond_key key_COND_group_replication_connection_cond_var
Definition: mysqld.cc:13947
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:13934
PSI_stage_info stage_optimizing
Definition: mysqld.cc:14119
char system_time_zone_dst_on[30]
Definition: mysqld.cc:1491
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1504
long tc_heuristic_recover
Definition: mysqld.cc:1346
bool connection_events_loop_aborted()
Definition: mysqld.h:752
bool opt_disable_networking
Definition: mysqld.cc:1210
bool listen_admin_interface_in_separate_thread
Definition: mysqld.cc:1187
size_t mysql_data_home_len
Definition: mysqld.cc:1509
static char * path
Definition: mysqldump.cc:149
static char * shared_memory_base_name
Definition: mysqltest.cc:198
size_t size(const char *const c)
Definition: base64.h:46
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:266
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:304
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:525
Definition: system_variables.h:203
To facilitate calculating values of status variables aggregated per all THDs in real-time,...
Definition: aggregated_stats.h:39
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2740
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:1109
Definition: violite.h:256
Include file for Sun RPC to compile out of the box.