MySQL 8.0.30
Source Code Documentation
mysqld.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2022, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef MYSQLD_INCLUDED
24#define MYSQLD_INCLUDED
25
26#include "my_config.h"
27
28#include <signal.h>
29#include <stdint.h> // int32_t
30#include <sys/types.h>
31#include <time.h>
32#include <atomic>
33#include <string>
34#include <vector>
35
38#include "lex_string.h"
39#include "m_ctype.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"
63#include "mysql_com.h" // SERVER_VERSION_LENGTH
64#ifdef _WIN32
65#include "sql/nt_servc.h"
66#endif // _WIN32
67#include "sql/sql_bitmap.h"
68#include "sql/sql_const.h" // UUID_LENGTH
69
73class THD;
74class Time_zone;
75struct MEM_ROOT;
76struct handlerton;
77
78#if MAX_INDEXES <= 64
79typedef Bitmap<64> Key_map; /* Used for finding keys */
80#elif MAX_INDEXES > 255
81#error "MAX_INDEXES values greater than 255 is not supported."
82#else
83typedef Bitmap<((MAX_INDEXES + 7) / 8 * 8)> Key_map; /* Used for finding keys */
84#endif
85
86/* Bits from testflag */
87#define TEST_PRINT_CACHED_TABLES 1
88#define TEST_NO_KEY_GROUP 2
89#define TEST_MIT_THREAD 4
90/*
91 TEST_BLOCKING is made obsolete and is not used any
92 where in the code base and is retained here so that
93 the other bit flag values are not changed.
94*/
95#define OBSOLETE_TEST_BLOCKING 8
96#define TEST_KEEP_TMP_TABLES 16
97#define TEST_READCHECK 64 /**< Force use of readcheck */
98#define TEST_NO_EXTRA 128
99#define TEST_CORE_ON_SIGNAL 256 /**< Give core if signal */
100#define TEST_NO_STACKTRACE 512
101#define TEST_SIGINT 1024 /**< Allow sigint on threads */
102#define TEST_SYNCHRONIZATION \
103 2048 /**< get server to do sleep in \
104 some places */
105#define TEST_DO_QUICK_LEAK_CHECK \
106 4096 /**< Do Valgrind leak check for \
107 each command. */
108#define TEST_NO_TEMP_TABLES \
109 8192 /**< No temp table engine is loaded, so use dummy costs. */
110
111#define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */
112#define SPECIAL_SKIP_SHOW_DB 4 /* Don't allow 'show db' */
113#define SPECIAL_NO_RESOLVE 64 /* Don't use gethostname */
114#define SPECIAL_NO_HOST_CACHE 512 /* Don't cache hosts */
115#define SPECIAL_SHORT_LOG_FORMAT 1024
116
118
119/* Function prototypes */
120
121/**
122 Signal the server thread for restart.
123
124 @return false if the thread has been successfully signalled for restart
125 else true.
126*/
127
129void kill_mysql(void);
130void refresh_status();
132bool is_secure_file_path(const char *path);
133ulong sql_rnd_with_mutex();
134
135struct System_status_var *get_thd_status_var(THD *thd, bool *aggregated);
136
137#ifndef NDEBUG
138bool thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name);
139#else
140bool thd_mem_cnt_alloc(THD *thd, size_t size);
141#endif
142
143void thd_mem_cnt_free(THD *thd, size_t size);
144
145// These are needed for unit testing.
146void set_remaining_args(int argc, char **argv);
148void my_init_signals();
149bool gtid_server_init();
152
157
159 SERVER_BOOTING, /* Server is not operational. It is starting */
160 SERVER_OPERATING, /* Server is fully initialized and operating */
161 SERVER_SHUTTING_DOWN /* Server is shutting down */
164
166extern bool opt_bin_log;
167extern bool opt_log_replica_updates;
168extern bool opt_log_unsafe_statements;
173extern bool opt_log_slow_extra;
175extern bool opt_skip_name_resolve;
176extern bool opt_help;
177extern bool opt_verbose;
179extern MYSQL_PLUGIN_IMPORT std::atomic<int32>
181extern bool opt_no_dd_upgrade;
182extern long opt_upgrade_mode;
183extern bool opt_initialize;
184extern bool opt_safe_user_create;
187extern ulong replica_exec_mode_options;
191extern int32_t opt_regexp_time_limit;
192extern int32_t opt_regexp_stack_limit;
193#ifdef _WIN32
194extern bool opt_no_monitor;
195#endif // _WIN32
196extern bool opt_debugging;
197extern bool opt_validate_config;
198
206
209extern bool lower_case_file_system;
210
214 SLAVE_ROWS_HASH_SCAN = (1U << 2)
218
220
221#ifndef NDEBUG
223#endif
224extern ulong mts_parallel_option;
225#ifdef _WIN32
226extern bool opt_enable_named_pipe;
227extern char *named_pipe_full_access_group;
228extern bool opt_enable_shared_memory;
229extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
230#endif
231extern bool opt_allow_suspicious_udfs;
232extern const char *opt_secure_file_priv;
238#ifdef _WIN32
239extern const char *shared_memory_base_name;
240#endif
241extern const char *mysqld_unix_port;
242extern char *default_tz_name;
243extern Time_zone *default_tz;
244extern const char *default_storage_engine;
245extern const char *default_tmp_storage_engine;
248extern bool temptable_use_mmap;
249extern bool using_udf_functions;
250extern bool locked_in_memory;
251extern bool opt_using_transactions;
252extern ulong current_pid;
253extern ulong expire_logs_days;
254extern ulong binlog_expire_logs_seconds;
259extern ulong tc_log_page_waits;
260extern bool relay_log_purge;
261extern bool relay_log_recovery;
262extern std::atomic<bool> offline_mode;
265
271extern ulong delay_key_write_options;
272
273extern ulong opt_log_timestamps;
274extern const char *timestamp_type_names[];
278extern char *default_auth_plugin;
280extern bool password_require_current;
281/*
282 @warning : The real value is in @ref partial_revokes. The @ref
283 opt_partial_revokes is just a tool to trick the Sys_var class into
284 operating on an atomic variable.
285
286 Thus : do not use or access @ref opt_partial_revokes in your code.
287 If you need the value of the flag please use the @ref partial_revokes
288 global.
289 @todo :
290 @ref opt_partial_revokes to be removed when the Sys_var classes can operate
291 safely on an atomic.
292 */
293extern bool opt_partial_revokes;
294extern char *my_bind_addr_str;
295extern char *my_admin_bind_addr_str;
298extern char glob_hostname[HOSTNAME_LENGTH + 1];
300extern char *opt_init_file;
301extern const char *opt_tc_log_file;
302extern char server_uuid[UUID_LENGTH + 1];
303extern const char *server_uuid_ptr;
304extern const double log_10[309];
307extern ulong aborted_threads;
308extern ulong delayed_insert_timeout;
310extern std::atomic<int32> atomic_replica_open_temp_tables;
311extern ulong slow_launch_time;
312extern ulong table_cache_size;
313extern ulong schema_def_size;
314extern ulong stored_program_def_size;
315extern ulong table_def_size;
316extern ulong tablespace_def_size;
318extern ulong max_digest_length;
321extern ulong slave_trans_retries;
325extern ulong rpl_stop_replica_timeout;
326extern bool log_bin_use_v1_row_events;
329extern ulong open_files_limit;
330extern bool clone_startup;
331extern bool clone_recovery_error;
338extern ulong replica_max_allowed_packet;
339extern ulong binlog_row_event_max_size;
340extern ulong binlog_checksum_options;
341extern ulong binlog_row_metadata;
342extern const char *binlog_checksum_type_names[];
347extern ulong binlog_error_action;
350 /// Ignore the error and let server continue without binlogging
352 /// Abort the server
353 ABORT_SERVER = 1
355extern const char *binlog_error_action_list[];
356extern char *opt_authentication_policy;
357extern std::vector<std::string> authentication_policy_list;
358
359extern ulong stored_program_cache_size;
360extern ulong back_log;
362extern time_t server_start_time;
363extern char *opt_mysql_tmpdir;
366extern const char *show_comp_option_name[];
367extern const char *first_keyword, *binary_keyword;
368extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
369extern const char *in_left_expr_name;
370extern SHOW_VAR status_vars[];
373extern struct rand_struct sql_rand;
374extern handlerton *myisam_hton;
375extern handlerton *heap_hton;
377extern handlerton *innodb_hton;
379extern ulong opt_server_id_mask;
380extern const char *load_default_groups[];
381extern struct my_option my_long_early_options[];
382extern bool mysqld_server_started;
386extern bool old_mode;
387extern bool avoid_temporal_upgrade;
389extern ulong connection_errors_internal;
390extern ulong connection_errors_peer_addr;
392extern char *opt_log_error_services;
394/** The size of the host_cache. */
395extern uint host_cache_size;
396extern ulong log_error_verbosity;
397
398extern bool persisted_globals_load;
399extern bool opt_keyring_operations;
401extern char *opt_keyring_migration_user;
402extern char *opt_keyring_migration_host;
407extern ulong opt_keyring_migration_port;
408
411/**
412 Variable to check if connection related options are set
413 as part of keyring migration.
414*/
415extern bool migrate_connect_options;
416
418
419extern thread_local MEM_ROOT **THR_MALLOC;
420
423
424#ifdef HAVE_PSI_INTERFACE
425
467
470
479
511
536
540
541#endif /* HAVE_PSI_INTERFACE */
542
543/*
544 MAINTAINER: Please keep this list in order, to limit merge collisions.
545 Hint: grep PSI_stage_info | sort -u
546*/
569extern PSI_stage_info
597extern PSI_stage_info
600extern PSI_stage_info
604extern PSI_stage_info
606extern PSI_stage_info
608extern PSI_stage_info
649#ifdef HAVE_PSI_STATEMENT_INTERFACE
650/**
651 Statement instrumentation keys (sql).
652 The last entry, at [SQLCOM_END], is for parsing errors.
653*/
655
656/**
657 Statement instrumentation keys (com).
658 The last entry, at [COM_END], is for packet errors.
659*/
661
662/**
663 Statement instrumentation key for replication.
664*/
666#endif /* HAVE_PSI_STATEMENT_INTERFACE */
667
668extern struct st_VioSSLFd *ssl_acceptor_fd;
669
670extern bool opt_large_pages;
672extern char lc_messages_dir[FN_REFLEN];
673extern char *lc_messages_dir_ptr;
674extern const char *log_error_dest;
678
679extern long tc_heuristic_recover;
680
681extern ulong specialflag;
682extern size_t mysql_data_home_len;
683extern const char *mysql_real_data_home_ptr;
690extern bool log_bin_supplied;
693
694#define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
695
696/*
697 Server mutex locks and condition variables.
698 */
727
731
735
736extern ulong opt_ssl_fips_mode;
737
739
740extern sigset_t mysqld_signal_mask;
741/* query_id */
743extern std::atomic<query_id_t> atomic_global_query_id;
744
745int *get_remaining_argc();
746char ***get_remaining_argv();
747
748/* increment query_id and return it. */
749[[nodiscard]] inline query_id_t next_query_id() {
750 return ++atomic_global_query_id;
751}
752
753#define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
754
755/* Accessor function for _connection_events_loop_aborted flag */
756[[nodiscard]] inline bool connection_events_loop_aborted() {
758}
759
760/* only here because of unireg_init(). */
761static inline void set_connection_events_loop_aborted(bool value) {
763}
764
765/**
766
767 Check if --help option or --validate-config is specified.
768
769 @retval false Neither 'help' or 'validate-config' option is enabled.
770 @retval true Either 'help' or 'validate-config' or both options
771 are enabled.
772*/
774 return (opt_help || opt_validate_config);
775}
776
777/**
778 Get mysqld offline mode.
779
780 @return a bool indicating the offline mode status of the server.
781*/
782inline bool mysqld_offline_mode() { return offline_mode.load(); }
783
784/**
785 Set offline mode with a given value
786
787 @param value true or false indicating the offline mode status of server.
788*/
789inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
790
791/**
792 Get status partial_revokes on server
793
794 @return a bool indicating partial_revokes status of the server.
795 @retval true Parital revokes is ON
796 @retval flase Partial revokes is OFF
797*/
799
800/**
801 Set partial_revokes with a given value
802
803 @param value true or false indicating the status of partial revokes
804 turned ON/OFF on server.
805*/
806void set_mysqld_partial_revokes(bool value);
807
809
810bool parse_authentication_policy(char *val,
811 std::vector<std::string> &policy_list);
812bool validate_authentication_policy(char *val);
814#ifdef _WIN32
815
816bool is_windows_service();
818bool update_named_pipe_full_access_group(const char *new_group_name);
819
820#endif
821
823extern bool opt_mandatory_roles_cache;
825
828/* This variable is a registry handler, defined in mysql_server component and
829 used as a output parameter for minimal chassis. */
830extern SERVICE_TYPE_NO_CONST(registry) * srv_registry;
831/* These global variables which are defined and used in
832 mysql_server component */
833extern SERVICE_TYPE(dynamic_loader_scheme_file) * scheme_file_srv;
834extern SERVICE_TYPE(dynamic_loader) * dynamic_loader_srv;
835
838
840
842#endif /* MYSQLD_INCLUDED */
int64 query_id_t
Definition: binlog.h:70
Definition: sql_bitmap.h:137
Definition: sql_bitmap.h:40
This class implements component loading through manifest file.
Definition: sql_component.h:91
Definition: nt_servc.h:23
Definition: rpl_async_conn_failover_configuration_propagation.h:143
The class is a Rpl_filter representing global replication filters, with a vector that references all ...
Definition: rpl_filter.h:531
Class that contains functionality to monitor group member's state, role and quorum changes on all the...
Definition: rpl_io_monitor.h:125
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:922
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:48
char * argv[]
Definition: do_ctype.cc:45
get_options & argc
Definition: do_ctype.cc:51
uint sync_binlog_period
Definition: binlog.cc:175
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1574
char * opt_relay_logname
Definition: mysqld.h:276
bool server_id_supplied
Definition: mysqld.h:165
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:43
unsigned int PSI_file_key
Instrumented file key.
Definition: psi_file_bits.h:47
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:51
unsigned int PSI_rwlock_key
Instrumented rwlock key.
Definition: psi_rwlock_bits.h:43
unsigned int PSI_socket_key
Instrumented socket key.
Definition: psi_socket_bits.h:48
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:49
#define MAX_INDEXES
Definition: config.h:209
A better implementation of the UNIX ctype(3) library.
@ COM_END
Not a real command.
Definition: my_command.h:100
Common definition used by mysys, performance schema and server & client.
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:42
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
int64_t int64
Definition: my_inttypes.h:67
int32_t int32
Definition: my_inttypes.h:65
uint32_t uint32
Definition: my_inttypes.h:66
Common #defines and includes for file and socket I/O.
#define FN_EXTLEN
Definition: my_io.h:81
#define FN_REFLEN
Definition: my_io.h:82
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:70
@ SQLCOM_END
Definition: my_sqlcommand.h:206
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:48
Common definition between mysql server & client.
#define SERVER_VERSION_LENGTH
Definition: mysql_com.h:73
Instrumentation helpers for conditions.
ABI for instrumented mutexes.
Instrumentation helpers for rwlock.
bool opt_enable_named_pipe
Definition: mysqld.cc:1213
void persisted_variables_refresh_keyring_support()
Definition: mysqld.cc:1811
uint sync_relaylog_period
Definition: mysqld.h:256
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:11851
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:11733
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:11582
ulong aborted_threads
Definition: mysqld.cc:1347
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1480
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:11922
PSI_stage_info stage_waiting_for_replica_thread_to_start
Definition: mysqld.cc:11971
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:11899
ulong opt_keyring_migration_port
Definition: mysqld.cc:1191
PSI_stage_info stage_updating
Definition: mysqld.cc:11960
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1243
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:11935
Deployed_components * g_deployed_components
This variable holds handle to the object that's responsible for loading/unloading components from man...
Definition: mysqld.cc:1369
PSI_file_key key_file_load
Definition: mysqld.cc:11837
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:11954
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:11571
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:11908
bool opt_source_verify_checksum
Definition: mysqld.cc:1295
PSI_file_key key_file_init
Definition: mysqld.cc:11845
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:11931
uint test_flags
Definition: mysqld.cc:1307
void kill_mysql(void)
Definition: mysqld.cc:2371
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:11981
mysql_mutex_t LOCK_replica_trans_dep_tracker
Definition: mysqld.cc:1568
bool validate_authentication_policy(char *val)
Validate @authentication_policy variable value.
Definition: mysqld.cc:4606
ulong delayed_insert_timeout
Definition: mysqld.cc:1348
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1575
mysql_service_registry_t * srv_registry
Definition: mysqld.cc:1978
bool sha256_password_proxy_users
Definition: mysqld.h:237
bool dynamic_plugins_are_initialized
Flag indicating if dynamic plugins have been loaded.
Definition: mysqld.cc:1922
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:11805
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:11568
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:12329
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:11900
PSI_file_key key_file_trn
Definition: mysqld.cc:11844
mysql_cond_t COND_manager
Definition: sql_manager.cc:59
char * opt_keyring_migration_socket
Definition: mysqld.cc:1188
int64 query_id_t
Definition: mysqld.h:742
uint ha_open_options
Definition: mysqld.h:263
bool opt_initialize
Definition: mysqld.cc:1211
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:11744
ulong delay_key_write_options
Definition: mysqld.cc:1309
char * my_bind_addr_str
Definition: mysqld.cc:1145
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1330
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:12319
handlerton * innodb_hton
Definition: mysqld.cc:1233
const char * show_comp_option_name[]
Definition: mysqld.cc:1021
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:11969
bool opt_log_replica_updates
Definition: mysqld.cc:1217
uint protocol_version
Definition: mysqld.cc:1310
PSI_mutex_key key_LOCK_delegate_connection_mutex
Definition: mysqld.cc:11591
PSI_file_key key_file_slow_log
Definition: mysqld.cc:11847
ulong opt_server_id_mask
Definition: mysqld.cc:1237
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1597
PSI_stage_info stage_query_end
Definition: mysqld.cc:11929
PSI_mutex_key key_source_info_thd_lock
Definition: mysqld.cc:11559
bool clone_recovery_error
True, if clone recovery has failed.
Definition: mysqld.cc:1290
char * default_tz_name
Definition: mysqld.cc:1462
ulonglong temptable_max_ram
Definition: mysqld.cc:1152
PSI_stage_info stage_replica_waiting_workers_to_exit
Definition: mysqld.cc:11952
bool using_udf_functions
Definition: mysqld.cc:1176
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:782
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1523
PSI_stage_info stage_replica_has_read_all_relay_log
Definition: mysqld.cc:11940
uint replica_rows_last_search_algorithm_used
Definition: mysqld.cc:1334
bool opt_no_dd_upgrade
Definition: mysqld.cc:1209
int init_common_variables()
Definition: mysqld.cc:4707
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:11730
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.h:333
struct st_VioSSLFd * ssl_acceptor_fd
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:11551
long opt_upgrade_mode
Definition: mysqld.cc:1210
char * my_admin_bind_addr_str
Definition: mysqld.cc:1146
uint sync_relayloginfo_period
Definition: mysqld.h:256
PSI_stage_info stage_statistics
Definition: mysqld.cc:11956
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:11032
PSI_file_key key_file_general_log
Definition: mysqld.cc:11846
ulong rpl_stop_replica_timeout
Definition: mysqld.cc:1355
mysql_mutex_t LOCK_manager
Definition: sql_manager.cc:58
PSI_mutex_key key_mutex_replica_reporting_capability_err_lock
Definition: mysqld.cc:11561
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:11569
char * opt_keyring_migration_source
Definition: mysqld.cc:1189
ulong opt_mts_replica_parallel_workers
Definition: mysqld.cc:1329
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_event_read
Definition: mysqld.cc:11947
char * opt_keyring_migration_user
Definition: mysqld.cc:1185
Bitmap< 64 > Key_map
Definition: mysqld.h:76
PSI_stage_info stage_worker_waiting_for_commit_parent
Definition: mysqld.cc:11977
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:11692
const char * log_error_dest
Definition: mysqld.cc:1464
PSI_mutex_key key_source_info_run_lock
Definition: mysqld.cc:11557
PSI_file_key key_file_misc
Definition: mysqld.cc:11841
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:11904
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1543
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:11804
PSI_cond_key key_COND_active
Definition: mysqld.cc:11731
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:11962
const char * server_uuid_ptr
Definition: mysqld.cc:1453
bool opt_replica_compressed_protocol
Definition: mysqld.cc:1214
bool old_mode
compatibility option:
Definition: mysqld.cc:1225
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:11751
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:11577
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:11693
PSI_stage_info stage_queueing_source_event_to_the_relay_log
Definition: mysqld.cc:11930
mysql_component_t mysql_component_mysql_server
Definition: server_component.cc:658
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:11588
PSI_stage_info stage_update
Definition: mysqld.cc:11959
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:2347
void my_init_signals()
Definition: mysqld.cc:3443
ulonglong replica_type_conversions_options
Definition: mysqld.cc:1328
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:11894
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1569
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1471
ulong slave_trans_retries
Definition: mysqld.cc:1325
bool parse_authentication_policy(char *val, std::vector< std::string > &policy_list)
Parse @authentication_policy variable value.
Definition: mysqld.cc:4553
SHOW_VAR status_vars[]
Definition: mysqld.cc:9455
PSI_stage_info stage_checking_source_version
Definition: mysqld.cc:11897
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:11901
uint mysqld_port
Definition: mysqld.h:264
ulong opt_tc_log_size
Definition: mysqld.cc:1179
PSI_stage_info stage_replica_waiting_worker_to_free_events
Definition: mysqld.cc:11950
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_binlog_dump_request
Definition: mysqld.cc:11946
uint replica_net_timeout
Definition: mysqld.cc:1326
PSI_cond_key key_source_info_data_cond
Definition: mysqld.cc:11735
handlerton * myisam_hton
Definition: mysqld.cc:1232
PSI_stage_info stage_sending_binlog_event_to_replica
Definition: mysqld.cc:11938
bool temptable_use_mmap
Definition: mysqld.cc:1154
bool opt_general_log
Definition: mysqld.cc:1166
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
Definition: mysqld.cc:11914
PSI_stage_info stage_suspending
Definition: mysqld.cc:11978
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:11550
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:11850
ulong table_def_size
Definition: mysqld.cc:1319
char system_time_zone_dst_off[30]
Definition: mysqld.h:299
int * get_remaining_argc()
Definition: mysqld.cc:1820
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1502
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1580
PSI_stage_info stage_system_lock
Definition: mysqld.cc:11958
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1542
ulong table_cache_size
Definition: mysqld.cc:1314
PSI_stage_info stage_replica_waiting_for_workers_to_process_queue
Definition: mysqld.cc:11945
mysql_rwlock_t LOCK_sys_init_replica
Definition: mysqld.cc:1570
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1346
uint opt_large_page_size
Definition: mysqld.cc:1252
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1353
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:11972
bool lower_case_file_system
Definition: mysqld.cc:1247
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:773
mysql_mutex_t LOCK_partial_revokes
Definition: mysqld.cc:1264
PSI_stage_info stage_replica_waiting_to_reconnect_after_failed_registration_on_source
Definition: mysqld.cc:11948
bool trust_function_creators
Definition: mysqld.h:235
PSI_stage_info stage_after_create
Definition: mysqld.cc:11892
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:11553
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:11578
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1467
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:11928
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:11576
mysql_cond_t COND_server_started
Definition: mysqld.cc:1576
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:11567
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1519
const char * default_tmp_storage_engine
Definition: mysqld.cc:1151
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:11965
uint opt_server_id_bits
Definition: mysqld.cc:1236
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:11909
bool opt_replica_preserve_commit_order
Definition: mysqld.cc:1332
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:11963
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:11563
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:11955
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:11906
bool opt_skip_name_resolve
Definition: mysqld.cc:1172
const char * timestamp_type_names[]
Definition: mysqld.cc:1305
const char * first_keyword
Definition: mysqld.cc:1029
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:11570
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1474
bool opt_debugging
Definition: mysqld.cc:1137
PSI_mutex_key key_monitor_info_run_lock
Definition: mysqld.cc:11590
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:1162
char glob_hostname[HOSTNAME_LENGTH+1]
Definition: mysqld.cc:1466
PSI_mutex_key key_LOCK_thd_security_ctx
Definition: mysqld.cc:11554
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:11975
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1577
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:11689
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:11548
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:11976
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1452
PSI_cond_key key_monitor_info_run_cond
Definition: mysqld.cc:11753
char * opt_disabled_storage_engines
Definition: mysqld.cc:1235
bool opt_bin_log
Definition: mysqld.cc:1165
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1261
char * opt_log_error_suppression_list
Definition: mysqld.cc:1183
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1343
PSI_stage_info stage_replica_reconnecting_after_failed_event_read
Definition: mysqld.cc:11942
const mysql_service_dynamic_loader_t * dynamic_loader_srv
Definition: persistent_dynamic_loader.cc:76
std::vector< std::string > authentication_policy_list
Definition: mysqld.cc:1487
bool opt_replica_sql_verify_checksum
Definition: mysqld.cc:1296
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:11552
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1456
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1573
char * opt_slow_logname
Definition: mysqld.h:275
Rpl_acf_configuration_handler * rpl_acf_configuration_handler
Definition: mysqld.cc:1515
PSI_file_key key_file_frm
Definition: mysqld.cc:11836
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:11921
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:11748
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:11912
ulonglong temptable_max_mmap
Definition: mysqld.cc:1153
bool avoid_temporal_upgrade
Compatibility option to prevent auto upgrade of old temporals during certain ALTER TABLE operations.
Definition: mysqld.cc:1403
bool opt_log_unsafe_statements
Definition: mysqld.cc:1303
MYSQL_PLUGIN_IMPORT CHARSET_INFO * files_charset_info
Definition: mysqld.cc:1525
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:11572
bool opt_myisam_use_mmap
Definition: mysqld.h:185
ulong delayed_insert_limit
Definition: mysqld.cc:1348
ulong what_to_log
Definition: mysqld.cc:1321
bool opt_super_readonly
Definition: mysqld.h:208
char *** get_remaining_argv()
Definition: mysqld.cc:1822
bool migrate_connect_options
Variable to check if connection related options are set as part of keyring migration.
Definition: mysqld.cc:1192
bool opt_log_slow_extra
Definition: mysqld.cc:1170
enum_server_operational_state
Definition: mysqld.h:158
@ SERVER_OPERATING
Definition: mysqld.h:160
@ SERVER_BOOTING
Definition: mysqld.h:159
@ SERVER_SHUTTING_DOWN
Definition: mysqld.h:161
PSI_stage_info stage_replica_waiting_event_from_coordinator
Definition: mysqld.cc:11944
bool opt_validate_config
Definition: mysqld.cc:1039
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1540
ulong connect_timeout
Definition: mysqld.h:319
char * opt_keyring_migration_host
Definition: mysqld.cc:1186
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:11953
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1571
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:11490
uint mysqld_admin_port
Definition: mysqld.cc:1147
ulonglong slave_rows_search_algorithms_options
Definition: mysqld.cc:1331
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:11973
ulong tc_log_max_pages_used
Definition: mysqld.h:258
ulong open_files_limit
Definition: mysqld.cc:1324
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:4459
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1258
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1889
mysql_mutex_t LOCK_global_conn_mem_limit
Definition: mysqld.cc:1605
ulong tablespace_def_size
Definition: mysqld.cc:1320
bool sp_automatic_privileges
Definition: mysqld.cc:1279
PSI_stage_info stage_end
Definition: mysqld.cc:11910
PSI_stage_info stage_registering_replica_on_source
Definition: mysqld.cc:11932
void thd_mem_cnt_free(THD *thd, size_t size)
Definition: mysqld.cc:1856
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1472
std::atomic< bool > offline_mode
Definition: mysqld.cc:1251
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:1553
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:12093
ulong tc_log_page_size
Definition: mysqld.h:258
bool opt_local_infile
Definition: mysqld.cc:1214
char * mysql_home_ptr
Definition: mysqld.cc:1661
char * lc_messages_dir_ptr
Definition: mysqld.cc:1470
PSI_file_key key_file_relaylog
Definition: mysqld.cc:11848
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:4494
const char * load_default_groups[]
Definition: program.cc:263
PSI_mutex_key key_mta_gaq_LOCK
Definition: mysqld.cc:11586
mysql_mutex_t LOCK_sql_replica_skip_counter
Definition: mysqld.cc:1566
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1543
ulong mts_parallel_option
Definition: mysqld.cc:1336
ulong prepared_stmt_count
Definition: mysqld.h:328
uint opt_mta_checkpoint_period
Definition: mysqld.h:257
handlerton * temptable_hton
Definition: mysqld.cc:1231
const char * binary_keyword
Definition: mysqld.h:367
uint default_password_lifetime
Definition: mysqld.cc:1253
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:11734
bool super_read_only
Definition: mysqld.cc:1239
ulong back_log
Definition: mysqld.cc:1313
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:1398
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1500
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1338
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:11918
char * opt_log_error_services
Definition: mysqld.cc:1184
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:685
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1282
PSI_file_key key_file_loadfile
Definition: mysqld.cc:11838
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:11964
bool opt_noacl
Definition: mysqld.h:234
Time_zone * default_tz
Definition: mysqld.cc:1478
PSI_cond_key key_source_info_start_cond
Definition: mysqld.cc:11736
mysql_component_t mysql_component_performance_schema
Definition: pfs.cc:9178
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:11468
bool opt_old_style_user_limits
Definition: mysqld.cc:1269
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:1127
ulong slow_launch_time
Definition: mysqld.cc:1322
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2479
PSI_stage_info stage_replica_reconnecting_after_failed_registration_on_source
Definition: mysqld.cc:11943
bool opt_character_set_client_handshake
Definition: mysqld.cc:1173
PSI_stage_info stage_source_has_sent_all_binlog_to_replica
Definition: mysqld.cc:11924
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1479
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:11833
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:11573
query_id_t next_query_id()
Definition: mysqld.h:749
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:11750
PSI_cond_key key_gtid_ensure_index_cond
Definition: mysqld.cc:11749
bool opt_keyring_operations
Definition: mysqld.cc:1407
bool opt_replica_allow_batching
Definition: mysqld.cc:1219
PSI_socket_key key_socket_unix
Definition: mysqld.cc:12094
ulonglong log_output_options
Definition: mysqld.cc:1167
bool opt_persist_sensitive_variables_in_plaintext
Definition: mysqld.cc:1196
const char * mysqld_unix_port
Definition: mysqld.cc:1483
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1454
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1259
ulong binlog_stmt_cache_disk_use
Definition: mysqld.h:306
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:11839
enum_binlog_error_action
Definition: mysqld.h:349
@ IGNORE_ERROR
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:351
@ ABORT_SERVER
Abort the server.
Definition: mysqld.h:353
char * opt_protocol_compression_algorithms
Definition: mysqld.cc:1481
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:11580
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:11746
bool opt_help
Definition: mysqld.cc:1039
bool clone_startup
True, if restarted from a cloned database.
Definition: mysqld.cc:1286
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1354
PSI_cond_key key_cond_mta_gaq
Definition: mysqld.cc:11747
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:11565
PSI_stage_info stage_killing_replica
Definition: mysqld.cc:11920
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1838
ulong opt_log_throttle_queries_not_using_indexes
Definition: mysqld.cc:1169
char * opt_keyring_migration_password
Definition: mysqld.cc:1187
mysql_mutex_t LOCK_crypt
Definition: mysqld.cc:1542
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1578
bool mysql_native_password_proxy_users
Definition: mysqld.h:236
ulong max_digest_length
Definition: sql_digest.cc:48
handlerton * heap_hton
Definition: mysqld.cc:1230
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:11743
ulong binlog_error_action
Definition: mysqld.cc:1299
ulong stored_program_def_size
Definition: mysqld.cc:1318
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:11579
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:383
bool opt_large_pages
Definition: mysqld.cc:1248
PSI_stage_info stage_flushing_relay_log_and_source_info_repository
Definition: mysqld.cc:11915
const mysql_service_dynamic_loader_scheme_file_t * scheme_file_srv
Definition: mysqld.cc:1979
static void set_connection_events_loop_aborted(bool value)
Definition: mysqld.h:761
const double log_10[309]
Definition: mysqld.cc:1411
PSI_stage_info stage_changing_source
Definition: mysqld.cc:11896
bool opt_always_activate_granted_roles
Definition: mysqld.cc:1164
Source_IO_monitor * rpl_source_io_monitor
Definition: mysqld.cc:1516
ulong binlog_stmt_cache_size
Definition: mysqld.h:332
ulong opt_log_timestamps
Definition: mysqld.cc:1306
mysql_mutex_t LOCK_authentication_policy
Definition: mysqld.cc:1603
uint select_errors
Definition: mysqld.h:263
PSI_thread_key key_thread_handle_con_admin_sockets
Definition: mysqld.cc:11807
PSI_stage_info stage_rename
Definition: mysqld.cc:11934
ulonglong global_conn_mem_limit
Definition: mysqld.cc:1362
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:11849
char * pidfile_name_ptr
Definition: mysqld.h:277
std::atomic< int32 > atomic_replica_open_temp_tables
Definition: mysqld.cc:1323
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1457
bool opt_readonly
Definition: mysqld.h:207
ulong log_error_verbosity
Definition: mysqld.cc:1194
PSI_file_key key_file_hash_join
Definition: mysqld.cc:11853
ulong specialflag
Definition: mysqld.cc:1351
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1542
struct System_status_var global_status_var
Definition: mysqld.cc:1521
bool opt_skip_show_db
Definition: mysqld.h:174
const char * binlog_checksum_type_names[]
BINLOG_CHECKSUM variable.
Definition: log_event.cc:188
PSI_stage_info stage_communication_delegation
Definition: mysqld.cc:11987
PSI_file_key key_file_dbopt
Definition: mysqld.cc:11832
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:11980
const char * default_storage_engine
Definition: mysqld.cc:1150
PSI_stage_info stage_binlog_transaction_decompress
Definition: mysqld.cc:11983
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:11581
void set_mysqld_offline_mode(bool value)
Set offline mode with a given value.
Definition: mysqld.h:789
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:11903
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:1193
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:11802
PSI_file_key key_select_to_file
Definition: mysqld.cc:11834
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:1030
PSI_file_key key_file_tclog
Definition: mysqld.cc:11842
const char * binlog_error_action_list[]
Definition: mysqld.cc:1300
PSI_stage_info stage_preparing
Definition: mysqld.cc:11927
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:1048
PSI_stage_info stage_setup
Definition: mysqld.cc:11939
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:384
ulong max_binlog_size
Definition: mysqld.cc:1324
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1579
bool opt_large_files
Definition: mysqld.cc:1032
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:11587
bool opt_require_secure_transport
Definition: mysqld.cc:1240
mysql_mutex_t LOCK_replica_net_timeout
Definition: mysqld.cc:1567
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:11575
PSI_cond_key key_cond_slave_worker_hash
Definition: mysqld.cc:11752
MYSQL_PLUGIN_IMPORT std::atomic< int32 > connection_events_loop_aborted_flag
Definition: mysqld.cc:1180
MYSQL_PLUGIN_IMPORT CHARSET_INFO * table_alias_charset
Definition: mysqld.cc:1526
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1409
bool opt_log_slow_replica_statements
Definition: mysqld.h:233
bool opt_partial_revokes
Definition: mysqld.cc:1256
PSI_mutex_key key_source_info_sleep_lock
Definition: mysqld.cc:11558
PSI_mutex_key key_LOCK_group_replication_connection_mutex
Definition: mysqld.cc:11592
ulong delayed_queue_size
Definition: mysqld.h:309
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2504
ulonglong global_conn_mem_counter
Definition: mysqld.cc:1363
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:1049
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1342
PSI_mutex_key key_mutex_replica_worker_hash
Definition: mysqld.cc:11589
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1930
bool opt_binlog_expire_logs_auto_purge
Definition: mysqld.cc:1393
PSI_stage_info stage_init
Definition: mysqld.cc:11919
ulong locked_account_connection_count
Definition: mysqld.cc:1360
PSI_file_key key_file_binlog
Definition: mysqld.cc:11830
void reset_status_by_thd()
Definition: mysqld.cc:11537
bool thd_mem_cnt_alloc(THD *thd, size_t size, const char *key_name)
Definition: mysqld.cc:1846
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:11840
PSI_stage_info stage_rpl_failover_wait_before_next_fetch
Definition: mysqld.cc:11986
PSI_cond_key key_source_info_sleep_cond
Definition: mysqld.cc:11738
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:11925
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:11700
CHARSET_INFO * character_set_filesystem
Definition: mysqld.cc:1527
bool check_proxy_users
Definition: mysqld.cc:1270
PSI_cond_key key_source_info_rotate_cond
Definition: mysqld.cc:11739
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:11564
PSI_stage_info stage_explaining
Definition: mysqld.cc:11913
char * opt_mysql_tmpdir
Definition: mysqld.cc:1484
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1815
ulong max_relay_log_size
Definition: mysqld.h:337
ulong binlog_row_metadata
Definition: mysqld.cc:1294
bool persisted_globals_load
Definition: mysqld.cc:1405
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:11555
PSI_mutex_key key_mta_temp_table_LOCK
Definition: mysqld.cc:11585
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:11936
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:11574
bool relay_log_purge
Definition: mysqld.cc:1241
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:11907
char * opt_bin_logname
Definition: mysqld.h:275
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:11562
time_t server_start_time
Definition: mysqld.cc:1450
PSI_stage_info stage_waiting_for_source_update
Definition: mysqld.cc:11968
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1311
ulong current_pid
Definition: mysqld.cc:1387
bool locked_in_memory
Definition: mysqld.cc:1177
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:11741
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:11895
PSI_file_key key_file_fileparser
Definition: mysqld.cc:11835
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1496
ulong replica_exec_mode_options
Definition: mysqld.cc:1327
enum_delay_key_write
Definition: mysqld.h:266
@ DELAY_KEY_WRITE_ON
Definition: mysqld.h:268
@ DELAY_KEY_WRITE_NONE
Definition: mysqld.h:267
@ DELAY_KEY_WRITE_ALL
Definition: mysqld.h:269
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:1559
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1543
bool log_bin_supplied
Definition: mysqld.cc:1448
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2447
PSI_stage_info stage_flushing_relay_log_info_file
Definition: mysqld.cc:11916
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1392
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:11745
char * default_auth_plugin
Definition: mysqld.cc:1662
MYSQL_PLUGIN_IMPORT CHARSET_INFO * national_charset_info
Definition: mysqld.cc:1526
PSI_stage_info stage_connecting_to_source
Definition: mysqld.cc:11902
PSI_stage_info stage_rpl_failover_fetching_source_member_details
Definition: mysqld.cc:11984
PSI_stage_info stage_binlog_transaction_compress
Definition: mysqld.cc:11982
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:11688
PSI_file_key key_file_trg
Definition: mysqld.cc:11843
char * opt_init_file
Definition: mysqld.cc:1468
bool relay_log_recovery
Definition: mysqld.cc:1242
PSI_rwlock_key key_rwlock_gtid_mode_lock
Definition: mysqld.cc:1084
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:11831
PSI_cond_key key_COND_pool
Definition: mysqld.cc:11732
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:1168
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:11893
const char * opt_tc_log_file
Definition: mysqld.cc:1469
PSI_stage_info stage_rpl_failover_updating_source_member_details
Definition: mysqld.cc:11985
LEX_STRING opt_init_replica
Definition: mysqld.h:388
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:11690
struct my_option my_long_early_options[]
Definition: mysqld.cc:8680
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:11803
char * opt_keyring_migration_destination
Definition: mysqld.cc:1190
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1302
PSI_stage_info stage_starting
Definition: mysqld.cc:11979
bool opt_slow_log
Definition: mysqld.h:169
ulong tc_log_page_waits
Definition: tc_log.cc:306
mysql_rwlock_t LOCK_sys_init_connect
Definition: mysqld.cc:1570
bool log_bin_use_v1_row_events
Definition: mysqld.cc:1356
struct System_variables max_system_variables
Definition: mysqld.cc:1520
char * opt_authentication_policy
Definition: mysqld.cc:1486
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:12343
bool update_authentication_policy()
Update @authentication_policy variable value.
Definition: mysqld.cc:4655
const char * opt_secure_file_priv
Definition: mysqld.cc:1244
PSI_mutex_key key_source_info_data_lock
Definition: mysqld.cc:11556
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1245
ulong binlog_cache_size
Definition: mysqld.cc:1337
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:11917
LEX_STRING opt_init_connect
Definition: mysqld.cc:1158
ulong binlog_checksum_options
Definition: mysqld.cc:1293
mysql_mutex_t LOCK_admin_tls_ctx_options
Definition: mysqld.cc:1263
ulong expire_logs_days
Definition: mysqld.cc:1391
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1298
bool mysqld_server_started
Definition: mysqld.cc:1607
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:11966
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:361
char * opt_general_logname
Definition: mysqld.cc:1647
ulong binlog_cache_use
Definition: mysqld.cc:1352
ulong max_connect_errors
Definition: mysqld.cc:1354
uint sync_masterinfo_period
Definition: mysqld.h:257
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:11937
PSI_stage_info stage_creating_table
Definition: mysqld.cc:11905
ulong binlog_cache_disk_use
Definition: mysqld.h:305
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1375
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1830
ulong binlog_row_event_max_size
Definition: mysqld.cc:1292
ulong flush_time
Definition: mysqld.h:327
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:11806
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:11933
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1262
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1341
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:11923
PSI_mutex_key key_source_info_rotate_lock
Definition: mysqld.cc:11560
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:11549
bool read_only
Definition: mysqld.cc:1238
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:11957
bool opt_mandatory_roles_cache
Definition: mysqld.cc:1163
PSI_stage_info stage_executing
Definition: mysqld.cc:11911
PSI_stage_info stage_replica_reconnecting_after_failed_binlog_dump_request
Definition: mysqld.cc:11941
PSI_stage_info stage_replica_waiting_worker_queue
Definition: mysqld.cc:11949
PSI_stage_info stage_replica_waiting_worker_to_release_partition
Definition: mysqld.cc:11951
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1467
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1281
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:11566
ulong schema_def_size
Definition: mysqld.cc:1317
ulong replica_max_allowed_packet
Definition: mysqld.cc:1339
PSI_file_key key_file_sdi
Definition: mysqld.cc:11852
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1592
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:4495
PSI_stage_info stage_waiting_for_the_replica_thread_to_advance_position
Definition: mysqld.cc:11974
uint opt_mta_checkpoint_group
Definition: mysqld.h:257
enum_replica_type_conversions
Definition: mysqld.h:199
@ REPLICA_TYPE_CONVERSIONS_ALL_UNSIGNED
Definition: mysqld.h:202
@ REPLICA_TYPE_CONVERSIONS_ALL_SIGNED
Definition: mysqld.h:203
@ REPLICA_TYPE_CONVERSIONS_ALL_NON_LOSSY
Definition: mysqld.h:201
@ REPLICA_TYPE_CONVERSIONS_ALL_LOSSY
Definition: mysqld.h:200
bool password_require_current
Definition: mysqld.cc:1254
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1260
bool opt_general_log_raw
Definition: mysqld.h:169
bool opt_safe_user_create
Definition: mysqld.cc:1215
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:11961
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:12095
bool opt_using_transactions
Definition: mysqld.cc:1178
PSI_stage_info stage_waiting_for_source_to_send_event
Definition: mysqld.cc:11967
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:11740
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1513
enum_slave_rows_search_algorithms
Definition: mysqld.h:211
@ SLAVE_ROWS_INDEX_SCAN
Definition: mysqld.h:213
@ SLAVE_ROWS_HASH_SCAN
Definition: mysqld.h:214
@ SLAVE_ROWS_TABLE_SCAN
Definition: mysqld.h:212
bool opt_verbose
Definition: mysql_ssl_rsa_setup.cc:122
PSI_cond_key key_source_info_stop_cond
Definition: mysqld.cc:11737
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:11898
PSI_rwlock_key key_rwlock_receiver_sid_lock
Definition: mysqld.cc:11691
PSI_stage_info stage_waiting_for_replica_mutex_on_exit
Definition: mysqld.cc:11970
PSI_cond_key key_COND_group_replication_connection_cond_var
Definition: mysqld.cc:11755
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:11742
PSI_stage_info stage_optimizing
Definition: mysqld.cc:11926
char system_time_zone_dst_on[30]
Definition: mysqld.cc:1455
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1468
long tc_heuristic_recover
Definition: mysqld.cc:1312
bool connection_events_loop_aborted()
Definition: mysqld.h:756
bool opt_disable_networking
Definition: mysqld.cc:1171
bool listen_admin_interface_in_separate_thread
Definition: mysqld.cc:1148
size_t mysql_data_home_len
Definition: mysqld.cc:1473
static char * path
Definition: mysqldump.cc:133
static char * shared_memory_base_name
Definition: mysqltest.cc:192
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:75
#define SERVICE_TYPE_NO_CONST(name)
Generates the standard Service type name.
Definition: service.h:70
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:269
Definition: m_ctype.h:354
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:82
Definition: mysql_lex_string.h:39
Definition: mysql_lex_string.h:34
Definition: my_sys.h:310
Stage instrument information.
Definition: psi_stage_bits.h:73
Statement instrument information.
Definition: psi_statement_bits.h:117
SHOW STATUS Server status variable.
Definition: status_var.h:78
Per thread status variables.
Definition: system_variables.h:479
Definition: system_variables.h:178
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2542
Definition: my_getopt.h:92
Carries information on the specific Component, all Service Implementations it provides,...
Definition: dynamic_loader.h:262
An instrumented cond structure.
Definition: mysql_cond_bits.h:49
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:49
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:50
Definition: mysql_com.h:1105
Definition: violite.h:253
Include file for Sun RPC to compile out of the box.
unsigned int uint
Definition: uca-dump.cc:29