MySQL  8.0.16
Source Code Documentation
mysqld.h
Go to the documentation of this file.
1 /* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
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 
34 #include "lex_string.h"
35 #include "m_ctype.h"
36 #include "my_command.h"
37 #include "my_compiler.h"
38 #include "my_getopt.h"
39 #include "my_inttypes.h"
40 #include "my_io.h"
41 #include "my_psi_config.h"
42 #include "my_sharedlib.h"
43 #include "my_sqlcommand.h" // SQLCOM_END
44 #include "my_sys.h" // MY_TMPDIR
45 #include "my_thread.h" // my_thread_attr_t
57 #include "mysql/status_var.h"
58 #include "mysql_com.h" // SERVER_VERSION_LENGTH
59 #ifdef _WIN32
60 #include "sql/nt_servc.h"
61 #endif // _WIN32
62 #include "sql/sql_bitmap.h"
63 #include "sql/sql_const.h" // UUID_LENGTH
64 
65 class Rpl_global_filter;
66 class THD;
67 class Time_zone;
68 struct MEM_ROOT;
69 struct handlerton;
70 
71 #if MAX_INDEXES <= 64
72 typedef Bitmap<64> Key_map; /* Used for finding keys */
73 #elif MAX_INDEXES > 255
74 #error "MAX_INDEXES values greater than 255 is not supported."
75 #else
76 typedef Bitmap<((MAX_INDEXES + 7) / 8 * 8)> Key_map; /* Used for finding keys */
77 #endif
78 
79 /* Bits from testflag */
80 #define TEST_PRINT_CACHED_TABLES 1
81 #define TEST_NO_KEY_GROUP 2
82 #define TEST_MIT_THREAD 4
83 /*
84  TEST_BLOCKING is made obsolete and is not used any
85  where in the code base and is retained here so that
86  the other bit flag values are not changed.
87 */
88 #define OBSOLETE_TEST_BLOCKING 8
89 #define TEST_KEEP_TMP_TABLES 16
90 #define TEST_READCHECK 64 /**< Force use of readcheck */
91 #define TEST_NO_EXTRA 128
92 #define TEST_CORE_ON_SIGNAL 256 /**< Give core if signal */
93 #define TEST_NO_STACKTRACE 512
94 #define TEST_SIGINT 1024 /**< Allow sigint on threads */
95 #define TEST_SYNCHRONIZATION \
96  2048 /**< get server to do sleep in \
97  some places */
98 #define TEST_DO_QUICK_LEAK_CHECK \
99  4096 /**< Do Valgrind leak check for \
100  each command. */
101 
102 #define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */
103 #define SPECIAL_SKIP_SHOW_DB 4 /* Don't allow 'show db' */
104 #define SPECIAL_NO_RESOLVE 64 /* Don't use gethostname */
105 #define SPECIAL_NO_HOST_CACHE 512 /* Don't cache hosts */
106 #define SPECIAL_SHORT_LOG_FORMAT 1024
108 /* Function prototypes */
109 
110 /**
111  Signal the server thread for restart.
112 
113  @return false if the thread has been successfully signalled for restart
114  else true.
115 */
116 
117 bool signal_restart_server();
118 void kill_mysql(void);
119 void refresh_status();
120 bool is_secure_file_path(const char *path);
122 
123 struct System_status_var *get_thd_status_var(THD *thd, bool *aggregated);
124 
125 // These are needed for unit testing.
126 void set_remaining_args(int argc, char **argv);
128 void my_init_signals();
129 bool gtid_server_init();
130 void gtid_server_cleanup();
132 
137 
139  SERVER_BOOTING, /* Server is not operational. It is starting */
140  SERVER_OPERATING, /* Server is fully initialized and operating */
141  SERVER_SHUTTING_DOWN /* erver is shutting down */
142 };
144 
146 extern bool opt_bin_log;
147 extern bool opt_log_slave_updates;
148 extern bool opt_log_unsafe_statements;
153 extern bool opt_log_slow_extra;
155 extern bool opt_skip_name_resolve;
156 extern bool opt_help;
157 extern bool opt_verbose;
159 extern MYSQL_PLUGIN_IMPORT std::atomic<int32>
161 extern bool opt_no_dd_upgrade;
162 extern long opt_upgrade_mode;
163 extern bool opt_initialize;
164 extern bool opt_safe_user_create;
169 extern int32_t opt_regexp_time_limit;
170 extern int32_t opt_regexp_stack_limit;
171 #ifdef _WIN32
172 extern bool opt_no_monitor;
173 #endif // _WIN32
174 extern bool opt_debugging;
175 extern bool opt_validate_config;
176 
182 };
184 
185 extern bool read_only, opt_readonly;
187 extern bool lower_case_file_system;
188 
190  SLAVE_ROWS_TABLE_SCAN = (1U << 0),
193 };
195 extern bool opt_require_secure_transport;
196 
198 
199 #ifndef DBUG_OFF
201 #endif
203 #ifdef _WIN32
204 extern bool opt_enable_named_pipe;
205 extern char *named_pipe_full_access_group;
206 extern bool opt_enable_shared_memory;
207 extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
208 #endif
209 extern bool opt_allow_suspicious_udfs;
210 extern char *opt_secure_file_priv;
216 #ifdef _WIN32
217 extern const char *shared_memory_base_name;
218 #endif
219 extern char *mysqld_unix_port;
220 extern char *default_tz_name;
221 extern Time_zone *default_tz;
222 extern char *default_storage_engine;
223 extern char *default_tmp_storage_engine;
225 extern bool temptable_use_mmap;
226 extern bool using_udf_functions;
227 extern bool locked_in_memory;
228 extern bool opt_using_transactions;
229 extern ulong current_pid;
230 extern ulong expire_logs_days;
235 extern ulong tc_log_page_waits;
236 extern bool relay_log_purge;
237 extern bool relay_log_recovery;
238 extern std::atomic<bool> offline_mode;
241 
246 };
248 
250 extern const char *timestamp_type_names[];
253 extern char *mysql_home_ptr, *pidfile_name_ptr;
254 extern char *default_auth_plugin;
256 extern volatile bool password_require_current;
257 /*
258  @warning : The real value is in @ref partial_revokes. The @ref
259  opt_partial_revokes is just a tool to trick the Sys_var class into
260  operating on an atomic variable.
261 
262  Thus : do not use or access @ref opt_partial_revokes in your code.
263  If you need the value of the flag please use the @ref partial_revokes
264  global.
265  @todo :
266  @ref opt_partial_revokes to be removed when the Sys_var classes can operate
267  safely on an atomic.
268  */
269 extern bool opt_partial_revokes;
270 extern char *my_bind_addr_str;
271 extern char *my_admin_bind_addr_str;
272 extern uint mysqld_admin_port;
274 extern char glob_hostname[FN_REFLEN];
275 extern char system_time_zone[30], *opt_init_file;
276 extern char *opt_tc_log_file;
277 extern char server_uuid[UUID_LENGTH + 1];
278 extern const char *server_uuid_ptr;
279 extern const double log_10[309];
282 extern ulong aborted_threads;
285 extern std::atomic<int32> atomic_slave_open_temp_tables;
286 extern ulong slow_launch_time;
287 extern ulong table_cache_size;
288 extern ulong schema_def_size;
290 extern ulong table_def_size;
293 extern ulong max_digest_length;
295 extern bool opt_slave_allow_batching;
297 extern uint slave_net_timeout;
301 extern bool log_bin_use_v1_row_events;
304 extern ulong open_files_limit;
315 extern const char *binlog_checksum_type_names[];
316 extern bool opt_master_verify_checksum;
319 extern bool binlog_gtid_simple_recovery;
323  /// Ignore the error and let server continue without binlogging
325  /// Abort the server
327 };
328 extern const char *binlog_error_action_list[];
329 
331 extern ulong back_log;
333 extern time_t server_start_time;
334 extern char *opt_mysql_tmpdir;
337 extern const char *show_comp_option_name[];
338 extern const char *first_keyword, *binary_keyword;
339 extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
340 extern const char *in_left_expr_name;
341 extern SHOW_VAR status_vars[];
344 extern struct rand_struct sql_rand;
345 extern handlerton *myisam_hton;
346 extern handlerton *heap_hton;
347 extern handlerton *temptable_hton;
348 extern handlerton *innodb_hton;
349 extern uint opt_server_id_bits;
351 extern const char *load_default_groups[];
352 extern struct my_option my_long_early_options[];
353 extern bool mysqld_server_started;
354 extern "C" MYSQL_PLUGIN_IMPORT int orig_argc;
355 extern "C" MYSQL_PLUGIN_IMPORT char **orig_argv;
357 extern bool old_mode;
358 extern bool avoid_temporal_upgrade;
362 extern char *opt_log_error_suppression_list;
363 extern char *opt_log_error_services;
364 /** The size of the host_cache. */
365 extern uint host_cache_size;
367 
368 extern bool persisted_globals_load;
369 extern bool opt_keyring_operations;
371 extern char *opt_keyring_migration_user;
372 extern char *opt_keyring_migration_host;
373 extern char *opt_keyring_migration_password;
374 extern char *opt_keyring_migration_socket;
375 extern char *opt_keyring_migration_source;
378 /**
379  Variable to check if connection related options are set
380  as part of keyring migration.
381 */
382 extern bool migrate_connect_options;
383 
385 
386 extern thread_local MEM_ROOT **THR_MALLOC;
387 
390 
391 #ifdef HAVE_PSI_INTERFACE
392 
434 
437 
445 
477 
501 
505 
506 #endif /* HAVE_PSI_INTERFACE */
507 
508 /*
509  MAINTAINER: Please keep this list in order, to limit merge collisions.
510  Hint: grep PSI_stage_info | sort -u
511 */
535 extern PSI_stage_info
603 #ifdef HAVE_PSI_STATEMENT_INTERFACE
604 /**
605  Statement instrumentation keys (sql).
606  The last entry, at [SQLCOM_END], is for parsing errors.
607 */
609 
610 /**
611  Statement instrumentation keys (com).
612  The last entry, at [COM_END], is for packet errors.
613 */
615 
616 /**
617  Statement instrumentation key for replication.
618 */
620 #endif /* HAVE_PSI_STATEMENT_INTERFACE */
621 
622 #ifdef HAVE_OPENSSL
623 extern struct st_VioSSLFd *ssl_acceptor_fd;
624 #endif /* HAVE_OPENSSL */
625 
626 extern bool opt_large_pages;
628 extern char lc_messages_dir[FN_REFLEN];
629 extern char *lc_messages_dir_ptr;
630 extern const char *log_error_dest;
634 
635 extern long tc_heuristic_recover;
636 
637 extern ulong specialflag;
638 extern size_t mysql_data_home_len;
639 extern const char *mysql_real_data_home_ptr;
645 extern char default_logfile_name[FN_REFLEN];
646 extern bool log_bin_supplied;
648 extern MYSQL_PLUGIN_IMPORT char pidfile_name[];
649 
650 #define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
651 
652 /*
653  Server mutex locks and condition variables.
654  */
678 
682 
686 
687 extern ulong opt_ssl_fips_mode;
688 
689 extern char *opt_disabled_storage_engines;
690 
691 extern sigset_t mysqld_signal_mask;
692 /* query_id */
693 typedef int64 query_id_t;
694 extern std::atomic<query_id_t> atomic_global_query_id;
696 int *get_remaining_argc();
697 char ***get_remaining_argv();
698 
699 /* increment query_id and return it. */
700 inline MY_ATTRIBUTE((warn_unused_result)) query_id_t next_query_id() {
701  return ++atomic_global_query_id;
702 }
703 
704 #define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
705 
706 /* Accessor function for _connection_events_loop_aborted flag */
707 inline MY_ATTRIBUTE(
708  (warn_unused_result)) bool connection_events_loop_aborted() {
710 }
711 
712 /* only here because of unireg_init(). */
713 static inline void set_connection_events_loop_aborted(bool value) {
715 }
716 
717 /**
718 
719  Check if --help option or --validate-config is specified.
720 
721  @retval false Neither 'help' or 'validate-config' option is enabled.
722  @retval true Either 'help' or 'validate-config' or both options
723  are enabled.
724 */
725 inline bool is_help_or_validate_option() {
726  return (opt_help || opt_validate_config);
727 }
728 
729 /**
730  Get mysqld offline mode.
731 
732  @return a bool indicating the offline mode status of the server.
733 */
734 inline bool mysqld_offline_mode() { return offline_mode.load(); }
735 
736 /**
737  Set offline mode with a given value
738 
739  @param value true or false indicating the offline mode status of server.
740 */
741 inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
742 
743 /**
744  Get status partial_revokes on server
745 
746  @return a bool indicating partial_revokes status of the server.
747  @retval true Parital revokes is ON
748  @retval flase Partial revokes is OFF
749 */
751 
752 /**
753  Set partial_revokes with a given value
754 
755  @param value true or false indicating the status of partial revokes
756  turned ON/OFF on server.
757 */
759 
760 #ifdef _WIN32
761 
762 bool is_windows_service();
764 bool update_named_pipe_full_access_group(const char *new_group_name);
765 
766 #endif
767 
769 extern bool opt_mandatory_roles_cache;
771 #endif /* MYSQLD_INCLUDED */
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:10249
PSI_stage_info stage_sending_data
Definition: mysqld.cc:10438
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:10397
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1336
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:1930
PSI_stage_info stage_creating_sort_index
Definition: mysqld.cc:10402
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:10022
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:10055
ulong binlog_error_action
Definition: mysqld.cc:1073
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:10059
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:10478
unsigned long long int ulonglong
Definition: my_inttypes.h:69
char * opt_keyring_migration_password
Definition: mysqld.cc:973
Definition: mysqld.h:141
PSI_stage_info stage_waiting_for_master_update
Definition: mysqld.cc:10465
Definition: system_variables.h:174
bool opt_master_verify_checksum
Definition: mysqld.cc:1069
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:10080
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:10407
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:10398
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:10339
int init_common_variables()
Definition: mysqld.cc:4071
PSI_stage_info stage_slave_waiting_for_workers_to_process_queue
Definition: mysqld.cc:10442
uint opt_server_id_bits
Definition: mysqld.cc:1020
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2027
unsigned int PSI_file_key
Instrumented file key.
Definition: psi_file_bits.h:46
PSI_cond_key key_cond_slave_worker_hash
Definition: mysqld.cc:10257
char * opt_bin_logname
Definition: mysqld.cc:1382
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:10244
PSI_file_key key_file_sdi
Definition: mysqld.cc:10351
PSI_mutex_key key_master_info_rotate_lock
Definition: mysqld.cc:10066
ulong delayed_insert_timeout
Definition: mysqld.cc:1122
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:10392
PSI_stage_info stage_registering_slave_on_master
Definition: mysqld.cc:10430
get_options & argc
Definition: do_ctype.cc:51
const char * binlog_error_action_list[]
Definition: mysqld.cc:1074
char * opt_secure_file_priv
Definition: mysqld.cc:1028
bool opt_log_slave_updates
Definition: mysqld.cc:1001
bool trust_function_creators
Definition: mysqld.cc:1051
bool opt_no_dd_upgrade
Definition: mysqld.cc:993
Definition: mysql_lex_string.h:34
Definition: mysqld.h:194
PSI_stage_info stage_flushing_relay_log_info_file
Definition: mysqld.cc:10414
char * opt_slow_logname
Definition: mysqld.cc:1382
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:10420
bool opt_always_activate_granted_roles
Definition: mysqld.cc:950
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:3942
PSI_stage_info stage_setup
Definition: mysqld.cc:10439
PSI_file_key key_file_relaylog
Definition: mysqld.cc:10347
PSI_cond_key key_master_info_start_cond
Definition: mysqld.cc:10239
ulong mts_parallel_option
Definition: mysqld.cc:1110
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:10069
const char * server_uuid_ptr
Definition: mysqld.cc:1217
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1235
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1219
const char * show_comp_option_name[]
Definition: mysqld.cc:814
char * opt_keyring_migration_host
Definition: mysqld.cc:972
uint mysqld_admin_port
Definition: mysqld.cc:934
Performance schema instrumentation interface.
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1313
Definition: mysql_com.h:1015
Definition: sql_bitmap.h:38
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:727
struct System_status_var global_status_var
Definition: mysqld.cc:1270
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:10473
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:357
PSI_rwlock_key key_rwlock_receiver_sid_lock
Definition: mysqld.cc:10194
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1027
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1248
PSI_stage_info stage_explaining
Definition: mysqld.cc:10411
char * opt_keyring_migration_user
Definition: mysqld.cc:971
An instrumented cond structure.
Definition: mysql_cond_bits.h:49
longlong int64
Definition: my_inttypes.h:71
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:10098
File containing constants that can be used throughout the server.
uint sync_binlog_period
Definition: binlog.cc:165
char * opt_general_logname
Definition: mysqld.cc:1382
Definition: my_sys.h:325
bool persisted_globals_load
Definition: mysqld.cc:1169
ulonglong log_output_options
Definition: mysqld.cc:953
Some integer typedefs for easier portability.
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:10469
bool relay_log_recovery
Definition: mysqld.cc:1026
const char * load_default_groups[]
Definition: program.cc:258
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:10243
ulong table_cache_size
Definition: mysqld.cc:1088
ulong tc_log_max_pages_used
Definition: tc_log.cc:114
ulong delay_key_write_options
Definition: mysqld.cc:1083
Definition: sql_bitmap.h:134
bool opt_help
Definition: mysqld.cc:832
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:70
ulong binlog_checksum_options
Definition: mysqld.cc:1067
PSI_cond_key key_master_info_rotate_cond
Definition: mysqld.cc:10242
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:10332
PSI_stage_info stage_killing_slave
Definition: mysqld.cc:10418
PSI_stage_info stage_slave_waiting_event_from_coordinator
Definition: mysqld.cc:10441
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:10400
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1524
ulong binlog_stmt_cache_size
Definition: mysqld.cc:1114
PSI_cond_key key_RELAYLOG_COND_done
Definition: mysqld.cc:10252
ulong binlog_row_event_max_size
Definition: mysqld.cc:1066
Definition: mysqld.h:193
ulong slave_max_allowed_packet
Definition: mysqld.cc:1113
PSI_file_key key_file_dbopt
Definition: mysqld.cc:10331
PSI_stage_info stage_executing
Definition: mysqld.cc:10409
PSI_mutex_key key_master_info_run_lock
Definition: mysqld.cc:10063
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:10060
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1254
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1318
bool is_windows_service()
uint opt_mts_checkpoint_group
Definition: mysqld.cc:1154
#define SERVER_VERSION_LENGTH
Definition: mysql_com.h:72
PSI_mutex_key key_mts_temp_table_LOCK
Definition: mysqld.cc:10095
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:10075
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:10233
Definition: mysql_lex_string.h:39
ulonglong slave_rows_search_algorithms_options
Definition: mysqld.cc:1105
int * get_remaining_argc()
Definition: mysqld.cc:1506
uint opt_mts_checkpoint_period
Definition: mysqld.cc:1154
bool opt_safe_user_create
Definition: mysqld.cc:999
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:10432
char * opt_keyring_migration_source
Definition: mysqld.cc:975
mysql_rwlock_t LOCK_sys_init_connect
Definition: mysqld.cc:1314
struct my_option my_long_early_options[]
Definition: mysqld.cc:7282
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:10086
bool connection_events_loop_aborted()
Definition: mysqld.h:710
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:10470
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:736
PSI_mutex_key key_master_info_data_lock
Definition: mysqld.cc:10062
Performance schema instrumentation interface.
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:10237
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1289
bool opt_super_readonly
Definition: mysqld.cc:1023
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:10458
PSI_cond_key key_RELAYLOG_prep_xids_cond
Definition: mysqld.cc:10253
PSI_stage_info stage_waiting_for_slave_thread_to_start
Definition: mysqld.cc:10468
handlerton * myisam_hton
Definition: mysqld.cc:1016
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1029
PSI_stage_info stage_waiting_for_master_to_send_event
Definition: mysqld.cc:10464
bool opt_keyring_operations
Definition: mysqld.cc:1171
size_t mysql_data_home_len
Definition: mysqld.cc:1236
PSI_stage_info stage_slave_waiting_worker_to_release_partition
Definition: mysqld.cc:10445
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:356
const char * binlog_checksum_type_names[]
BINLOG_CHECKSUM variable.
Definition: log_event.cc:176
char system_time_zone[30]
Definition: mysqld.cc:1218
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:10248
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:10449
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:10460
ulonglong slave_type_conversions_options
Definition: mysqld.cc:1102
PSI_mutex_key key_mutex_slave_worker_hash
Definition: mysqld.cc:10099
bool opt_disable_networking
Definition: mysqld.cc:957
bool opt_skip_show_db
Definition: mysqld.cc:957
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:10192
bool opt_enable_named_pipe
Definition: mysqld.cc:997
ulong connect_timeout
Definition: mysqld.cc:1087
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:1302
SHOW_VAR status_vars[]
Definition: mysqld.cc:8088
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:10078
PSI_file_key key_file_load
Definition: mysqld.cc:10336
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1272
CHARSET_INFO * character_set_filesystem
Definition: mysqld.cc:1276
PSI_file_key key_file_general_log
Definition: mysqld.cc:10345
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1501
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1128
PSI_stage_info stage_master_has_sent_all_binlog_to_slave
Definition: mysqld.cc:10422
bool opt_noacl
Definition: mysqld.cc:1060
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:51
enum_slave_rows_search_algorithms
Definition: mysqld.h:191
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:10405
ulong flush_time
Definition: mysqld.cc:1124
PSI_file_key key_file_fileparser
Definition: mysqld.cc:10334
MYSQL_PLUGIN_IMPORT std::atomic< int32 > connection_events_loop_aborted_flag
Definition: mysqld.cc:966
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:10390
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
Definition: mysqld.cc:10412
Instrumentation helpers for conditions.
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:10406
enum_binlog_error_action
Definition: mysqld.h:324
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1042
bool opt_log_slow_slave_statements
Definition: mysqld.cc:1030
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1120
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1291
bool opt_debugging
Definition: mysqld.cc:924
ulong specialflag
Definition: mysqld.cc:1125
PSI_file_key key_file_misc
Definition: mysqld.cc:10340
bool sha256_password_proxy_users
Definition: mysqld.cc:1053
bool opt_readonly
Definition: mysqld.cc:1022
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:914
PSI_file_key key_file_loadfile
Definition: mysqld.cc:10337
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1317
PSI_stage_info stage_waiting_for_the_slave_thread_to_advance_position
Definition: mysqld.cc:10471
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1116
bool opt_general_log
Definition: mysqld.cc:952
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1323
PSI_file_key key_select_to_file
Definition: mysqld.cc:10333
ulong binlog_cache_size
Definition: mysqld.cc:1111
handlerton * temptable_hton
Definition: mysqld.cc:1015
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1252
PSI_file_key key_file_init
Definition: mysqld.cc:10344
bool opt_partial_revokes
Definition: mysqld.cc:1040
PSI_stage_info stage_waiting_for_slave_mutex_on_exit
Definition: mysqld.cc:10467
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:49
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:10251
Common definition between mysql server & client.
PSI_stage_info stage_slave_waiting_worker_queue
Definition: mysqld.cc:10443
Functions related to handling of plugins and other dynamically loaded libraries.
const char * log_error_dest
Definition: mysqld.cc:1227
ulong binlog_cache_disk_use
Definition: mysqld.cc:1126
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1216
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:10462
bool opt_mandatory_roles_cache
Definition: mysqld.cc:949
enum_slave_type_conversions
Definition: mysqld.h:179
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2084
char * my_bind_addr_str
Definition: mysqld.cc:932
MYSQL_PLUGIN_IMPORT CHARSET_INFO * files_charset_info
Definition: mysqld.cc:1274
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:10436
char * opt_log_error_services
Definition: mysqld.cc:970
bool opt_local_infile
Definition: mysqld.cc:998
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:10798
bool opt_skip_name_resolve
Definition: mysqld.cc:958
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:10391
PSI_stage_info stage_sorting_for_group
Definition: mysqld.cc:10450
uint opt_large_page_size
Definition: mysqld.cc:1036
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:10081
Not a real command.
Definition: my_command.h:99
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1265
uint test_flags
Definition: mysqld.cc:1081
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:41
PSI_cond_key key_gtid_ensure_index_cond
Definition: mysqld.cc:10254
LEX_STRING opt_init_slave
Definition: mysqld.cc:944
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:10000
char * mysqld_unix_port
Definition: mysqld.cc:1245
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:10419
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1341
Definition: mysqld.h:246
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:10088
Performance schema instrumentation interface.
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:10195
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:10077
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:10415
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:10410
PSI_mutex_key key_RELAYLOG_LOCK_flush_queue
Definition: mysqld.cc:10085
PSI_stage_info stage_checking_master_version
Definition: mysqld.cc:10394
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1234
int64 query_id_t
Definition: mysqld.h:695
query_id_t next_query_id()
Definition: mysqld.h:702
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:10246
mysql_mutex_t LOCK_sql_slave_skip_counter
Definition: mysqld.cc:1310
PSI_mutex_key key_mts_gaq_LOCK
Definition: mysqld.cc:10096
Definition: mysqld.h:180
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:10423
bool mysqld_server_started
Definition: mysqld.cc:1343
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1104
PSI_stage_info stage_after_create
Definition: mysqld.cc:10389
static char * shared_memory_base_name
Definition: mysqltest.cc:190
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:10396
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1324
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:10338
uint protocol_version
Definition: mysqld.cc:1084
ulonglong temptable_max_ram
Definition: mysqld.cc:939
PSI_stage_info stage_connecting_to_master
Definition: mysqld.cc:10399
PSI_stage_info stage_sorting_for_order
Definition: mysqld.cc:10451
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1291
ulong back_log
Definition: mysqld.cc:1087
bool opt_character_set_client_handshake
Definition: mysqld.cc:959
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1516
PSI_stage_info stage_sending_binlog_event_to_slave
Definition: mysqld.cc:10437
char * lc_messages_dir_ptr
Definition: mysqld.cc:1233
char * opt_log_error_suppression_list
Definition: mysqld.cc:969
ulong max_relay_log_size
Definition: mysqld.cc:1098
Stage instrument information.
Definition: psi_stage_bits.h:71
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:10061
Performance schema instrumentation interface.
char * pidfile_name_ptr
Definition: mysqld.cc:1396
PSI_file_key key_file_frm
Definition: mysqld.cc:10335
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:10429
ulong slow_launch_time
Definition: mysqld.cc:1096
bool opt_validate_config
Definition: mysqld.cc:832
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:10073
unsigned int PSI_socket_key
Instrumented socket key.
Definition: psi_socket_bits.h:47
SHOW STATUS Server status variable.
Definition: status_var.h:78
ulong expire_logs_days
Definition: mysqld.cc:1156
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:9591
bool temptable_use_mmap
Definition: mysqld.cc:940
bool mysql_native_password_proxy_users
Definition: mysqld.cc:1052
PSI_file_key key_file_slow_log
Definition: mysqld.cc:10346
PSI_mutex_key key_master_info_sleep_lock
Definition: mysqld.cc:10064
bool opt_require_secure_transport
Definition: mysqld.cc:1024
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1268
bool opt_slave_allow_batching
Definition: mysqld.cc:1003
ulong max_digest_length
Definition: sql_digest.cc:47
PSI_stage_info stage_starting
Definition: mysqld.cc:10476
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:979
char * argv[]
Definition: example1.cc:2
bool locked_in_memory
Definition: mysqld.cc:963
std::atomic< bool > offline_mode
Definition: mysqld.cc:1035
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:10071
ulong delayed_queue_size
Definition: mysqld.cc:1122
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1085
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1230
ulong binlog_row_metadata
Definition: mysqld.cc:1068
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1045
mysql_cond_t COND_server_started
Definition: mysqld.cc:1320
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:10070
Definition: mysqld.h:142
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:10416
PSI_stage_info stage_suspending
Definition: mysqld.cc:10475
char * opt_relay_logname
Definition: mysqld.cc:1360
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:10079
ulong binlog_stmt_cache_disk_use
Definition: mysqld.cc:1127
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:10247
Header for compiler-dependent features.
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:10330
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:10421
Definition: mysqld.h:247
Definition: mysqld.h:182
PSI_cond_key key_cond_mts_gaq
Definition: mysqld.cc:10250
static char * path
Definition: mysqldump.cc:122
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:10404
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
const char * timestamp_type_names[]
Definition: mysqld.cc:1079
Statement instrument information.
Definition: psi_statement_bits.h:108
char * default_storage_engine
Definition: mysqld.cc:937
bool read_only
Definition: mysqld.cc:1022
PSI_file_key key_file_tclog
Definition: mysqld.cc:10341
ulong open_files_limit
Definition: mysqld.cc:1098
bool log_bin_supplied
Definition: mysqld.cc:1212
ulong delayed_insert_limit
Definition: mysqld.cc:1122
PSI_stage_info stage_updating
Definition: mysqld.cc:10457
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1140
PSI_stage_info stage_slave_waiting_workers_to_exit
Definition: mysqld.cc:10446
unsigned int uint
Definition: uca-dump.cc:29
ulong slave_trans_retries
Definition: mysqld.cc:1099
#define FN_REFLEN
Definition: my_io.h:82
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:10074
The class is a Rpl_filter representing global replication filters, with a vector that references all ...
Definition: rpl_filter.h:522
PSI_stage_info stage_changing_master
Definition: mysqld.cc:10393
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1173
time_t server_start_time
Definition: mysqld.cc:1214
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:10466
bool opt_general_log_raw
Definition: mysqld.cc:952
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:10091
bool opt_log_unsafe_statements
Definition: mysqld.cc:1077
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2055
PSI_stage_info stage_worker_waiting_for_commit_parent
Definition: mysqld.cc:10474
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:10076
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:3981
Definition: my_getopt.h:90
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:10426
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1242
Performance schema instrumentation interface.
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1243
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:10306
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1115
char * default_tmp_storage_engine
Definition: mysqld.cc:938
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2219
char * opt_init_file
Definition: mysqld.cc:1230
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1127
PSI_stage_info stage_system_lock
Definition: mysqld.cc:10455
PSI_mutex_key key_master_info_thd_lock
Definition: mysqld.cc:10065
PSI_cond_key key_COND_active
Definition: mysqld.cc:10234
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:823
const char * first_keyword
Definition: mysqld.cc:822
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:3980
uint sync_relaylog_period
Definition: mysqld.cc:1153
char * opt_tc_log_file
Definition: mysqld.cc:1230
void my_init_signals()
Definition: mysqld.cc:3002
ulong prepared_stmt_count
Current total number of prepared statements in the server.
Definition: mysqld.cc:1151
ulong tc_log_page_waits
Definition: tc_log.cc:108
Definition: m_ctype.h:358
unsigned int PSI_rwlock_key
Instrumented rwlock key.
Definition: psi_rwlock_bits.h:41
mysql_mutex_t LOCK_crypt
Definition: mysqld.cc:1291
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:10461
Defines to make different thread packages compatible.
Instrumentation helpers for mutexes.
bool opt_large_pages
Definition: mysqld.cc:1032
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1560
PSI_stage_info stage_preparing
Definition: mysqld.cc:10425
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.cc:1118
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1319
PSI_stage_info stage_removing_duplicates
Definition: mysqld.cc:10431
PSI_stage_info stage_flushing_relay_log_and_master_info_repository
Definition: mysqld.cc:10413
Definition: mysqld.h:181
bool opt_myisam_use_mmap
Definition: mysqld.cc:1034
Common header for many mysys elements.
ulong opt_log_timestamps
Definition: mysqld.cc:1080
ulong stored_program_def_size
Definition: mysqld.cc:1092
PSI_stage_info stage_init
Definition: mysqld.cc:10417
char * opt_keyring_migration_socket
Definition: mysqld.cc:974
mysql_cond_t COND_manager
Definition: sql_manager.cc:59
void set_mysqld_offline_mode(bool value)
Set offline mode with a given value.
Definition: mysqld.h:743
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:10348
bool check_proxy_users
Definition: mysqld.cc:1052
PSI_file_key key_file_trn
Definition: mysqld.cc:10343
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:643
long tc_heuristic_recover
Definition: mysqld.cc:1086
char * default_auth_plugin
Definition: mysqld.cc:1397
ulong rpl_stop_slave_timeout
Definition: mysqld.cc:1129
ulong max_connect_errors
Definition: mysqld.cc:1128
ulong binlog_cache_use
Definition: mysqld.cc:1126
enum_delay_key_write
Definition: mysqld.h:244
PSI_stage_info stage_optimizing
Definition: mysqld.cc:10424
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1076
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:948
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:10256
ulong locked_account_connection_count
Definition: mysqld.cc:1134
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:50
bool listen_admin_interface_in_separate_thread
Definition: mysqld.cc:935
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:10302
bool opt_slave_sql_verify_checksum
Definition: mysqld.cc:1070
bool server_id_supplied
Definition: mysqld.cc:960
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:10454
ulong opt_tc_log_size
Definition: mysqld.cc:965
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:10092
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1063
ulong current_pid
Definition: mysqld.cc:1152
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:10434
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1315
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:10350
char glob_hostname[FN_REFLEN]
Definition: mysqld.cc:1229
Windows NT Service class library.
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:10472
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:10236
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:10245
uint sync_masterinfo_period
Definition: mysqld.cc:1154
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:10097
PSI_cond_key key_COND_pool
Definition: mysqld.cc:10235
bool log_bin_use_v1_row_events
Definition: mysqld.cc:1130
Performance schema instrumentation interface.
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:334
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:48
PSI_thread_key key_thread_handle_con_admin_sockets
Definition: mysqld.cc:10307
pthread_attr_t my_thread_attr_t
Definition: my_thread_bits.h:48
enum_server_operational_state
Definition: mysqld.h:140
bool opt_verbose
Definition: mysql_ssl_rsa_setup.cc:122
bool avoid_temporal_upgrade
Compatibility option to prevent auto upgrade of old temporals during certain ALTER TABLE operations...
Definition: mysqld.cc:1167
ulong slave_exec_mode_options
Definition: mysqld.cc:1101
bool opt_slave_preserve_commit_order
Definition: mysqld.cc:1106
PSI_stage_info stage_sorting_result
Definition: mysqld.cc:10452
PSI_stage_info stage_queueing_master_event_to_the_relay_log
Definition: mysqld.cc:10428
PSI_stage_info stage_slave_has_read_all_relay_log
Definition: mysqld.cc:10440
ulong opt_log_throttle_queries_not_using_indexes
Definition: mysqld.cc:955
std::atomic< int32 > atomic_slave_open_temp_tables
Definition: mysqld.cc:1097
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:10303
PSI_stage_info stage_slave_waiting_worker_to_free_events
Definition: mysqld.cc:10444
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:49
char * mysql_home_ptr
Definition: mysqld.cc:1396
char * opt_disabled_storage_engines
Definition: mysqld.cc:1019
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:10401
char * opt_mysql_tmpdir
Definition: mysqld.cc:1245
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1596
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:10057
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:10477
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:10304
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1064
int64 query_id_t
Definition: binlog.h:69
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:10349
const char * binary_keyword
Definition: mysqld.cc:822
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1291
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:10580
ulong log_error_verbosity
Definition: mysqld.cc:980
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:10448
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:326
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1237
ulong tc_log_page_size
Definition: tc_log.cc:114
ulong table_def_size
Definition: mysqld.cc:1093
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:10305
uint mysqld_port
Definition: mysqld.cc:1081
ABI for instrumented mutexes.
uint slave_net_timeout
Definition: mysqld.cc:1100
MYSQL_PLUGIN_IMPORT CHARSET_INFO * national_charset_info
Definition: mysqld.cc:1275
Common #defines and includes for file and socket I/O.
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1230
handlerton * innodb_hton
Definition: mysqld.cc:1017
#define UUID_LENGTH
Definition: sql_const.h:412
Definition: mysqld.h:183
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1218
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:10058
mysql_mutex_t LOCK_slave_net_timeout
Definition: mysqld.cc:1311
bool lower_case_file_system
Definition: mysqld.cc:1031
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:10193
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1291
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:10447
PSI_socket_key key_socket_unix
Definition: mysqld.cc:10579
handlerton * heap_hton
Definition: mysqld.cc:1014
ulong aborted_threads
Definition: mysqld.cc:1121
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:841
char * my_admin_bind_addr_str
Definition: mysqld.cc:933
#define FN_EXTLEN
Definition: my_io.h:81
PSI_file_key key_file_binlog
Definition: mysqld.cc:10329
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1046
mysql_rwlock_t LOCK_sys_init_slave
Definition: mysqld.cc:1314
PSI_mutex_key key_RELAYLOG_LOCK_done
Definition: mysqld.cc:10084
ulong what_to_log
Definition: mysqld.cc:1095
A better implementation of the UNIX ctype(3) library.
PSI_stage_info stage_update
Definition: mysqld.cc:10456
bool opt_using_transactions
Definition: mysqld.cc:964
ulong opt_keyring_migration_port
Definition: mysqld.cc:977
bool super_read_only
Definition: mysqld.cc:1023
char * default_tz_name
Definition: mysqld.cc:1225
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:10808
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1220
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:842
uint slave_rows_last_search_algorithm_used
Definition: mysqld.cc:1108
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1044
bool migrate_connect_options
Variable to check if connection related options are set as part of keyring migration.
Definition: mysqld.cc:978
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:10068
const string value("\alue\)
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1112
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1321
LEX_STRING opt_init_connect
Definition: mysqld.cc:944
Performance schema instrumentation interface.
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:10395
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:10072
uint select_errors
Definition: mysqld.cc:1081
Abort the server.
Definition: mysqld.h:328
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:77
bool old_mode
compatibility option:
Definition: mysqld.cc:1009
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:10578
bool relay_log_purge
Definition: mysqld.cc:1025
struct System_variables max_system_variables
Definition: mysqld.cc:1269
PSI_stage_info stage_creating_table
Definition: mysqld.cc:10403
PSI_stage_info stage_query_end
Definition: mysqld.cc:10427
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:10191
char * opt_keyring_migration_destination
Definition: mysqld.cc:976
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1230
mysql_mutex_t LOCK_slave_trans_dep_tracker
Definition: mysqld.cc:1312
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:10082
PSI_mutex_key key_mutex_slave_reporting_capability_err_lock
Definition: mysqld.cc:10067
void kill_mysql(void)
Definition: mysqld.cc:1954
ulong opt_server_id_mask
Definition: mysqld.cc:1021
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1043
Definition: mysqld.h:192
Time_zone * default_tz
Definition: mysqld.cc:1241
NTService * get_win_service_ptr()
Instrumentation helpers for rwlock.
Definition: nt_servc.h:23
const double log_10[309]
Definition: mysqld.cc:1175
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:10255
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:10463
ulong max_binlog_size
Definition: mysqld.cc:1098
bool opt_large_files
Definition: mysqld.cc:825
ulong tablespace_def_size
Definition: mysqld.cc:1094
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:954
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:10459
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:10196
Per thread status variables.
Definition: system_variables.h:394
volatile bool password_require_current
Definition: mysqld.cc:1038
bool opt_old_style_user_limits
Definition: mysqld.cc:1051
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:1162
MYSQL_PLUGIN_IMPORT CHARSET_INFO * table_alias_charset
Definition: mysqld.cc:1275
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:10087
PSI_stage_info stage_rename
Definition: mysqld.cc:10433
PSI_stage_info stage_end
Definition: mysqld.cc:10408
unsigned long ulong
Definition: my_inttypes.h:46
PSI_mutex_key key_RELAYLOG_LOCK_commit_queue
Definition: mysqld.cc:10083
Definition: mysqld.h:143
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1291
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1157
bool using_udf_functions
Definition: mysqld.cc:962
bool opt_slow_log
Definition: mysqld.cc:952
PSI_cond_key key_master_info_data_cond
Definition: mysqld.cc:10238
char *** get_remaining_argv()
Definition: mysqld.cc:1508
long opt_upgrade_mode
Definition: mysqld.cc:994
Definition: dtoa.cc:601
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1117
bool opt_initialize
Definition: mysqld.cc:995
PSI_file_key key_file_trg
Definition: mysqld.cc:10342
uint sync_relayloginfo_period
Definition: mysqld.cc:1154
ulong opt_mts_slave_parallel_workers
Definition: mysqld.cc:1103
bool opt_log_slow_extra
Definition: mysqld.cc:956
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:10056
PSI_cond_key key_master_info_sleep_cond
Definition: mysqld.cc:10241
Definition: mysqld.h:245
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:10435
PSI_cond_key key_master_info_stop_cond
Definition: mysqld.cc:10240
bool opt_slave_compressed_protocol
Definition: mysqld.cc:998
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1322
bool sp_automatic_privileges
Definition: mysqld.cc:1061
ulong schema_def_size
Definition: mysqld.cc:1091
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1072
uint default_password_lifetime
Definition: mysqld.cc:1037
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:10203
PSI_mutex_key key_RELAYLOG_LOCK_sync_queue
Definition: mysqld.cc:10090
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:10089
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:776
Bitmap< 64 > Key_map
Definition: mysqld.h:69
uint ha_open_options
Definition: mysqld.cc:1081
PSI_stage_info stage_statistics
Definition: mysqld.cc:10453
Definition: my_sqlcommand.h:206
mysql_mutex_t LOCK_manager
Definition: sql_manager.cc:58
static void set_connection_events_loop_aborted(bool value)
Definition: mysqld.h:715
bool opt_bin_log
Definition: mysqld.cc:951