MySQL  8.0.17
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_hostname.h" // HOSTNAME_LENGTH
40 #include "my_inttypes.h"
41 #include "my_io.h"
42 #include "my_psi_config.h"
43 #include "my_sharedlib.h"
44 #include "my_sqlcommand.h" // SQLCOM_END
45 #include "my_sys.h" // MY_TMPDIR
46 #include "my_thread.h" // my_thread_attr_t
58 #include "mysql/status_var.h"
59 #include "mysql_com.h" // SERVER_VERSION_LENGTH
60 #ifdef _WIN32
61 #include "sql/nt_servc.h"
62 #endif // _WIN32
63 #include "sql/sql_bitmap.h"
64 #include "sql/sql_const.h" // UUID_LENGTH
65 
66 class Rpl_global_filter;
67 class THD;
68 class Time_zone;
69 struct MEM_ROOT;
70 struct handlerton;
71 
72 #if MAX_INDEXES <= 64
73 typedef Bitmap<64> Key_map; /* Used for finding keys */
74 #elif MAX_INDEXES > 255
75 #error "MAX_INDEXES values greater than 255 is not supported."
76 #else
77 typedef Bitmap<((MAX_INDEXES + 7) / 8 * 8)> Key_map; /* Used for finding keys */
78 #endif
79 
80 /* Bits from testflag */
81 #define TEST_PRINT_CACHED_TABLES 1
82 #define TEST_NO_KEY_GROUP 2
83 #define TEST_MIT_THREAD 4
84 /*
85  TEST_BLOCKING is made obsolete and is not used any
86  where in the code base and is retained here so that
87  the other bit flag values are not changed.
88 */
89 #define OBSOLETE_TEST_BLOCKING 8
90 #define TEST_KEEP_TMP_TABLES 16
91 #define TEST_READCHECK 64 /**< Force use of readcheck */
92 #define TEST_NO_EXTRA 128
93 #define TEST_CORE_ON_SIGNAL 256 /**< Give core if signal */
94 #define TEST_NO_STACKTRACE 512
95 #define TEST_SIGINT 1024 /**< Allow sigint on threads */
96 #define TEST_SYNCHRONIZATION \
97  2048 /**< get server to do sleep in \
98  some places */
99 #define TEST_DO_QUICK_LEAK_CHECK \
100  4096 /**< Do Valgrind leak check for \
101  each command. */
102 
103 #define SPECIAL_NO_NEW_FUNC 2 /* Skip new functions */
104 #define SPECIAL_SKIP_SHOW_DB 4 /* Don't allow 'show db' */
105 #define SPECIAL_NO_RESOLVE 64 /* Don't use gethostname */
106 #define SPECIAL_NO_HOST_CACHE 512 /* Don't cache hosts */
107 #define SPECIAL_SHORT_LOG_FORMAT 1024
109 /* Function prototypes */
110 
111 /**
112  Signal the server thread for restart.
113 
114  @return false if the thread has been successfully signalled for restart
115  else true.
116 */
117 
118 bool signal_restart_server();
119 void kill_mysql(void);
120 void refresh_status();
121 bool is_secure_file_path(const char *path);
123 
124 struct System_status_var *get_thd_status_var(THD *thd, bool *aggregated);
125 
126 // These are needed for unit testing.
127 void set_remaining_args(int argc, char **argv);
129 void my_init_signals();
130 bool gtid_server_init();
131 void gtid_server_cleanup();
133 
138 
140  SERVER_BOOTING, /* Server is not operational. It is starting */
141  SERVER_OPERATING, /* Server is fully initialized and operating */
142  SERVER_SHUTTING_DOWN /* erver is shutting down */
143 };
145 
147 extern bool opt_bin_log;
148 extern bool opt_log_slave_updates;
149 extern bool opt_log_unsafe_statements;
154 extern bool opt_log_slow_extra;
156 extern bool opt_skip_name_resolve;
157 extern bool opt_help;
158 extern bool opt_verbose;
160 extern MYSQL_PLUGIN_IMPORT std::atomic<int32>
162 extern bool opt_no_dd_upgrade;
163 extern long opt_upgrade_mode;
164 extern bool opt_initialize;
165 extern bool opt_safe_user_create;
170 extern int32_t opt_regexp_time_limit;
171 extern int32_t opt_regexp_stack_limit;
172 #ifdef _WIN32
173 extern bool opt_no_monitor;
174 #endif // _WIN32
175 extern bool opt_debugging;
176 extern bool opt_validate_config;
177 
183 };
185 
186 extern bool read_only, opt_readonly;
188 extern bool lower_case_file_system;
189 
191  SLAVE_ROWS_TABLE_SCAN = (1U << 0),
194 };
196 extern bool opt_require_secure_transport;
197 
199 
200 #ifndef DBUG_OFF
202 #endif
204 #ifdef _WIN32
205 extern bool opt_enable_named_pipe;
206 extern char *named_pipe_full_access_group;
207 extern bool opt_enable_shared_memory;
208 extern mysql_rwlock_t LOCK_named_pipe_full_access_group;
209 #endif
210 extern bool opt_allow_suspicious_udfs;
211 extern char *opt_secure_file_priv;
217 #ifdef _WIN32
218 extern const char *shared_memory_base_name;
219 #endif
220 extern const char *mysqld_unix_port;
221 extern char *default_tz_name;
222 extern Time_zone *default_tz;
223 extern char *default_storage_engine;
224 extern char *default_tmp_storage_engine;
226 extern bool temptable_use_mmap;
227 extern bool using_udf_functions;
228 extern bool locked_in_memory;
229 extern bool opt_using_transactions;
230 extern ulong current_pid;
231 extern ulong expire_logs_days;
236 extern ulong tc_log_page_waits;
237 extern bool relay_log_purge;
238 extern bool relay_log_recovery;
239 extern std::atomic<bool> offline_mode;
242 
247 };
249 
251 extern const char *timestamp_type_names[];
254 extern char *mysql_home_ptr, *pidfile_name_ptr;
255 extern char *default_auth_plugin;
257 extern volatile bool password_require_current;
258 /*
259  @warning : The real value is in @ref partial_revokes. The @ref
260  opt_partial_revokes is just a tool to trick the Sys_var class into
261  operating on an atomic variable.
262 
263  Thus : do not use or access @ref opt_partial_revokes in your code.
264  If you need the value of the flag please use the @ref partial_revokes
265  global.
266  @todo :
267  @ref opt_partial_revokes to be removed when the Sys_var classes can operate
268  safely on an atomic.
269  */
270 extern bool opt_partial_revokes;
271 extern char *my_bind_addr_str;
272 extern char *my_admin_bind_addr_str;
273 extern uint mysqld_admin_port;
275 extern char glob_hostname[HOSTNAME_LENGTH + 1];
276 extern char system_time_zone[30], *opt_init_file;
277 extern const char *opt_tc_log_file;
278 extern char server_uuid[UUID_LENGTH + 1];
279 extern const char *server_uuid_ptr;
280 extern const double log_10[309];
283 extern ulong aborted_threads;
286 extern std::atomic<int32> atomic_slave_open_temp_tables;
287 extern ulong slow_launch_time;
288 extern ulong table_cache_size;
289 extern ulong schema_def_size;
291 extern ulong table_def_size;
294 extern ulong max_digest_length;
296 extern bool opt_slave_allow_batching;
298 extern uint slave_net_timeout;
302 extern bool log_bin_use_v1_row_events;
305 extern ulong open_files_limit;
306 extern bool clone_startup;
307 extern bool clone_recovery_error;
318 extern const char *binlog_checksum_type_names[];
319 extern bool opt_master_verify_checksum;
322 extern bool binlog_gtid_simple_recovery;
326  /// Ignore the error and let server continue without binlogging
328  /// Abort the server
330 };
331 extern const char *binlog_error_action_list[];
332 
334 extern ulong back_log;
336 extern time_t server_start_time;
337 extern char *opt_mysql_tmpdir;
340 extern const char *show_comp_option_name[];
341 extern const char *first_keyword, *binary_keyword;
342 extern MYSQL_PLUGIN_IMPORT const char *my_localhost;
343 extern const char *in_left_expr_name;
344 extern SHOW_VAR status_vars[];
347 extern struct rand_struct sql_rand;
348 extern handlerton *myisam_hton;
349 extern handlerton *heap_hton;
350 extern handlerton *temptable_hton;
351 extern handlerton *innodb_hton;
352 extern uint opt_server_id_bits;
354 extern const char *load_default_groups[];
355 extern struct my_option my_long_early_options[];
356 extern bool mysqld_server_started;
357 extern "C" MYSQL_PLUGIN_IMPORT int orig_argc;
358 extern "C" MYSQL_PLUGIN_IMPORT char **orig_argv;
360 extern bool old_mode;
361 extern bool avoid_temporal_upgrade;
365 extern char *opt_log_error_suppression_list;
366 extern char *opt_log_error_services;
367 /** The size of the host_cache. */
368 extern uint host_cache_size;
370 
371 extern bool persisted_globals_load;
372 extern bool opt_keyring_operations;
374 extern char *opt_keyring_migration_user;
375 extern char *opt_keyring_migration_host;
376 extern char *opt_keyring_migration_password;
377 extern char *opt_keyring_migration_socket;
378 extern char *opt_keyring_migration_source;
381 /**
382  Variable to check if connection related options are set
383  as part of keyring migration.
384 */
385 extern bool migrate_connect_options;
386 
388 
389 extern thread_local MEM_ROOT **THR_MALLOC;
390 
393 
394 #ifdef HAVE_PSI_INTERFACE
395 
437 
440 
448 
480 
504 
508 
509 #endif /* HAVE_PSI_INTERFACE */
510 
511 /*
512  MAINTAINER: Please keep this list in order, to limit merge collisions.
513  Hint: grep PSI_stage_info | sort -u
514 */
537 extern PSI_stage_info
600 #ifdef HAVE_PSI_STATEMENT_INTERFACE
601 /**
602  Statement instrumentation keys (sql).
603  The last entry, at [SQLCOM_END], is for parsing errors.
604 */
606 
607 /**
608  Statement instrumentation keys (com).
609  The last entry, at [COM_END], is for packet errors.
610 */
612 
613 /**
614  Statement instrumentation key for replication.
615 */
617 #endif /* HAVE_PSI_STATEMENT_INTERFACE */
618 
619 #ifdef HAVE_OPENSSL
620 extern struct st_VioSSLFd *ssl_acceptor_fd;
621 #endif /* HAVE_OPENSSL */
622 
623 extern bool opt_large_pages;
625 extern char lc_messages_dir[FN_REFLEN];
626 extern char *lc_messages_dir_ptr;
627 extern const char *log_error_dest;
631 
632 extern long tc_heuristic_recover;
633 
634 extern ulong specialflag;
635 extern size_t mysql_data_home_len;
636 extern const char *mysql_real_data_home_ptr;
642 extern char default_logfile_name[FN_REFLEN];
643 extern bool log_bin_supplied;
645 extern MYSQL_PLUGIN_IMPORT char pidfile_name[];
646 
647 #define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list))
648 
649 /*
650  Server mutex locks and condition variables.
651  */
675 
679 
683 
684 extern ulong opt_ssl_fips_mode;
685 
686 extern char *opt_disabled_storage_engines;
687 
688 extern sigset_t mysqld_signal_mask;
689 /* query_id */
690 typedef int64 query_id_t;
691 extern std::atomic<query_id_t> atomic_global_query_id;
693 int *get_remaining_argc();
694 char ***get_remaining_argv();
695 
696 /* increment query_id and return it. */
697 inline MY_ATTRIBUTE((warn_unused_result)) query_id_t next_query_id() {
698  return ++atomic_global_query_id;
699 }
700 
701 #define ER(X) please_use_ER_THD_or_ER_DEFAULT_instead(X)
702 
703 /* Accessor function for _connection_events_loop_aborted flag */
704 inline MY_ATTRIBUTE(
705  (warn_unused_result)) bool connection_events_loop_aborted() {
707 }
708 
709 /* only here because of unireg_init(). */
710 static inline void set_connection_events_loop_aborted(bool value) {
712 }
713 
714 /**
715 
716  Check if --help option or --validate-config is specified.
717 
718  @retval false Neither 'help' or 'validate-config' option is enabled.
719  @retval true Either 'help' or 'validate-config' or both options
720  are enabled.
721 */
722 inline bool is_help_or_validate_option() {
723  return (opt_help || opt_validate_config);
724 }
725 
726 /**
727  Get mysqld offline mode.
728 
729  @return a bool indicating the offline mode status of the server.
730 */
731 inline bool mysqld_offline_mode() { return offline_mode.load(); }
732 
733 /**
734  Set offline mode with a given value
735 
736  @param value true or false indicating the offline mode status of server.
737 */
738 inline void set_mysqld_offline_mode(bool value) { offline_mode.store(value); }
739 
740 /**
741  Get status partial_revokes on server
742 
743  @return a bool indicating partial_revokes status of the server.
744  @retval true Parital revokes is ON
745  @retval flase Partial revokes is OFF
746 */
748 
749 /**
750  Set partial_revokes with a given value
751 
752  @param value true or false indicating the status of partial revokes
753  turned ON/OFF on server.
754 */
756 
757 #ifdef _WIN32
758 
759 bool is_windows_service();
761 bool update_named_pipe_full_access_group(const char *new_group_name);
762 
763 #endif
764 
766 extern bool opt_mandatory_roles_cache;
768 #endif /* MYSQLD_INCLUDED */
PSI_cond_key key_cond_slave_parallel_worker
Definition: mysqld.cc:10437
PSI_stage_info stage_closing_tables
Definition: mysqld.cc:10585
mysql_mutex_t LOCK_keyring_operations
Definition: mysqld.cc:1380
bool signal_restart_server()
Signal the server thread for restart.
Definition: mysqld.cc:2022
void refresh_status()
Reset global and session status variables.
Definition: mysqld.cc:10210
PSI_mutex_key key_LOCK_tc
Definition: mysqld.cc:10243
ulong binlog_error_action
Definition: mysqld.cc:1116
PSI_mutex_key key_LOCK_thd_sysvar
Definition: mysqld.cc:10247
PSI_stage_info stage_hook_begin_trans
Definition: mysqld.cc:10660
unsigned long long int ulonglong
Definition: my_inttypes.h:74
char * opt_keyring_migration_password
Definition: mysqld.cc:1008
Definition: mysqld.h:142
PSI_stage_info stage_waiting_for_master_update
Definition: mysqld.cc:10647
Definition: system_variables.h:174
bool opt_master_verify_checksum
Definition: mysqld.cc:1112
PSI_mutex_key key_LOCK_cost_const
Definition: mysqld.cc:10268
PSI_stage_info stage_discard_or_import_tablespace
Definition: mysqld.cc:10594
PSI_stage_info stage_compressing_gtid_table
Definition: mysqld.cc:10586
PSI_file_key key_file_log_event_info
Definition: mysqld.cc:10527
int init_common_variables()
Definition: mysqld.cc:4225
PSI_stage_info stage_slave_waiting_for_workers_to_process_queue
Definition: mysqld.cc:10627
uint opt_server_id_bits
Definition: mysqld.cc:1055
void clean_up_mysqld_mutexes()
Definition: mysqld.cc:2123
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:10445
char * opt_bin_logname
Definition: mysqld.cc:1427
PSI_cond_key key_relay_log_info_log_space_cond
Definition: mysqld.cc:10432
PSI_file_key key_file_sdi
Definition: mysqld.cc:10539
PSI_mutex_key key_master_info_rotate_lock
Definition: mysqld.cc:10254
ulong delayed_insert_timeout
Definition: mysqld.cc:1165
PSI_stage_info stage_alter_inplace_commit
Definition: mysqld.cc:10580
PSI_stage_info stage_registering_slave_on_master
Definition: mysqld.cc:10617
get_options & argc
Definition: do_ctype.cc:51
const char * binlog_error_action_list[]
Definition: mysqld.cc:1117
char * opt_secure_file_priv
Definition: mysqld.cc:1063
bool opt_log_slave_updates
Definition: mysqld.cc:1036
bool trust_function_creators
Definition: mysqld.cc:1086
bool opt_no_dd_upgrade
Definition: mysqld.cc:1028
Definition: mysql_lex_string.h:34
Definition: mysqld.h:195
PSI_stage_info stage_flushing_relay_log_info_file
Definition: mysqld.cc:10601
char * opt_slow_logname
Definition: mysqld.cc:1427
PSI_stage_info stage_making_temp_file_append_before_load_data
Definition: mysqld.cc:10607
bool opt_always_activate_granted_roles
Definition: mysqld.cc:985
LEX_CSTRING sql_statement_names[(uint) SQLCOM_END+1]
Definition: mysqld.cc:4097
PSI_stage_info stage_setup
Definition: mysqld.cc:10624
PSI_file_key key_file_relaylog
Definition: mysqld.cc:10535
PSI_cond_key key_master_info_start_cond
Definition: mysqld.cc:10427
ulong mts_parallel_option
Definition: mysqld.cc:1153
PSI_mutex_key key_relay_log_info_sleep_lock
Definition: mysqld.cc:10257
const char * server_uuid_ptr
Definition: mysqld.cc:1260
size_t mysql_unpacked_real_data_home_len
Definition: mysqld.cc:1278
char default_logfile_name[FN_REFLEN]
Definition: mysqld.cc:1262
const char * show_comp_option_name[]
Definition: mysqld.cc:849
char * opt_keyring_migration_host
Definition: mysqld.cc:1007
uint mysqld_admin_port
Definition: mysqld.cc:969
Performance schema instrumentation interface.
mysql_mutex_t LOCK_log_throttle_qni
Definition: mysqld.cc:1357
Definition: mysql_com.h:1006
Definition: sql_bitmap.h:38
bool is_help_or_validate_option()
Check if –help option or –validate-config is specified.
Definition: mysqld.h:724
struct System_status_var global_status_var
Definition: mysqld.cc:1314
PSI_stage_info stage_worker_waiting_for_its_turn_to_commit
Definition: mysqld.cc:10655
MYSQL_PLUGIN_IMPORT char ** orig_argv
Definition: mysqld.h:360
PSI_rwlock_key key_rwlock_receiver_sid_lock
Definition: mysqld.cc:10382
bool opt_allow_suspicious_udfs
Definition: mysqld.cc:1062
const char * in_left_expr_name
name of reference on left expression in rewritten IN subquery
Definition: mysqld.cc:1292
PSI_stage_info stage_explaining
Definition: mysqld.cc:10598
char * opt_keyring_migration_user
Definition: mysqld.cc:1006
An instrumented cond structure.
Definition: mysql_cond_bits.h:49
bool clone_recovery_error
True, if clone recovery has failed.
Definition: mysqld.cc:1107
PSI_mutex_key key_commit_order_manager_mutex
Definition: mysqld.cc:10286
File containing constants that can be used throughout the server.
uint sync_binlog_period
Definition: binlog.cc:166
char * opt_general_logname
Definition: mysqld.cc:1427
Definition: my_sys.h:330
bool persisted_globals_load
Definition: mysqld.cc:1212
ulonglong log_output_options
Definition: mysqld.cc:988
Some integer typedefs for easier portability.
PSI_stage_info stage_waiting_for_table_flush
Definition: mysqld.cc:10651
bool relay_log_recovery
Definition: mysqld.cc:1061
const char * load_default_groups[]
Definition: program.cc:258
PSI_cond_key key_relay_log_info_data_cond
Definition: mysqld.cc:10431
ulong table_cache_size
Definition: mysqld.cc:1131
ulong tc_log_max_pages_used
Definition: tc_log.cc:114
ulong delay_key_write_options
Definition: mysqld.cc:1126
Definition: sql_bitmap.h:135
bool opt_help
Definition: mysqld.cc:867
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:70
ulong binlog_checksum_options
Definition: mysqld.cc:1110
PSI_cond_key key_master_info_rotate_cond
Definition: mysqld.cc:10430
PSI_file_key key_file_ERRMSG
Definition: mysqld.cc:10520
PSI_stage_info stage_killing_slave
Definition: mysqld.cc:10605
PSI_stage_info stage_slave_waiting_event_from_coordinator
Definition: mysqld.cc:10626
PSI_stage_info stage_converting_heap_to_ondisk
Definition: mysqld.cc:10588
struct System_status_var * get_thd_status_var(THD *thd, bool *aggregated)
Definition: mysqld.cc:1614
ulong binlog_stmt_cache_size
Definition: mysqld.cc:1157
PSI_cond_key key_RELAYLOG_COND_done
Definition: mysqld.cc:10440
ulong binlog_row_event_max_size
Definition: mysqld.cc:1109
Definition: mysqld.h:194
ulong slave_max_allowed_packet
Definition: mysqld.cc:1156
PSI_file_key key_file_dbopt
Definition: mysqld.cc:10519
PSI_stage_info stage_executing
Definition: mysqld.cc:10596
PSI_mutex_key key_master_info_run_lock
Definition: mysqld.cc:10251
PSI_mutex_key key_LOCK_thd_protocol
Definition: mysqld.cc:10248
ulong connection_errors_peer_addr
Number of errors when reading the peer address.
Definition: mysqld.cc:1298
my_thread_attr_t connection_attrib
Definition: mysqld.cc:1362
bool is_windows_service()
uint opt_mts_checkpoint_group
Definition: mysqld.cc:1197
#define SERVER_VERSION_LENGTH
Definition: mysql_com.h:71
PSI_mutex_key key_mts_temp_table_LOCK
Definition: mysqld.cc:10283
PSI_mutex_key key_mutex_slave_parallel_worker
Definition: mysqld.cc:10263
PSI_cond_key key_PAGE_cond
Definition: mysqld.cc:10421
Definition: mysql_lex_string.h:39
ulonglong slave_rows_search_algorithms_options
Definition: mysqld.cc:1148
int * get_remaining_argc()
Definition: mysqld.cc:1596
uint opt_mts_checkpoint_period
Definition: mysqld.cc:1197
bool opt_safe_user_create
Definition: mysqld.cc:1034
PSI_stage_info stage_removing_tmp_table
Definition: mysqld.cc:10618
char * opt_keyring_migration_source
Definition: mysqld.cc:1010
mysql_rwlock_t LOCK_sys_init_connect
Definition: mysqld.cc:1358
struct my_option my_long_early_options[]
Definition: mysqld.cc:7468
PSI_mutex_key key_RELAYLOG_LOCK_index
Definition: mysqld.cc:10274
bool connection_events_loop_aborted()
Definition: mysqld.h:707
PSI_stage_info stage_waiting_for_the_next_event_in_relay_log
Definition: mysqld.cc:10652
bool mysqld_offline_mode()
Get mysqld offline mode.
Definition: mysqld.h:733
PSI_mutex_key key_master_info_data_lock
Definition: mysqld.cc:10250
Performance schema instrumentation interface.
PSI_cond_key key_item_func_sleep_cond
Definition: mysqld.cc:10425
thread_local MEM_ROOT ** THR_MALLOC
Definition: mysqld.cc:1333
bool opt_super_readonly
Definition: mysqld.cc:1058
PSI_stage_info stage_updating_main_table
Definition: mysqld.cc:10640
PSI_cond_key key_RELAYLOG_prep_xids_cond
Definition: mysqld.cc:10441
PSI_stage_info stage_waiting_for_slave_thread_to_start
Definition: mysqld.cc:10650
handlerton * myisam_hton
Definition: mysqld.cc:1051
bool opt_log_slow_admin_statements
Definition: mysqld.cc:1064
PSI_stage_info stage_waiting_for_master_to_send_event
Definition: mysqld.cc:10646
bool opt_keyring_operations
Definition: mysqld.cc:1214
size_t mysql_data_home_len
Definition: mysqld.cc:1279
PSI_stage_info stage_slave_waiting_worker_to_release_partition
Definition: mysqld.cc:10630
MYSQL_PLUGIN_IMPORT int orig_argc
Definition: mysqld.h:359
const char * binlog_checksum_type_names[]
BINLOG_CHECKSUM variable.
Definition: log_event.cc:176
char system_time_zone[30]
Definition: mysqld.cc:1261
PSI_cond_key key_cond_slave_parallel_pend_jobs
Definition: mysqld.cc:10436
PSI_stage_info stage_rpl_apply_row_evt_delete
Definition: mysqld.cc:10634
PSI_stage_info stage_user_sleep
Definition: mysqld.cc:10642
ulonglong slave_type_conversions_options
Definition: mysqld.cc:1145
PSI_mutex_key key_mutex_slave_worker_hash
Definition: mysqld.cc:10287
bool opt_disable_networking
Definition: mysqld.cc:992
bool opt_skip_show_db
Definition: mysqld.cc:992
PSI_rwlock_key key_rwlock_channel_map_lock
Definition: mysqld.cc:10380
bool opt_enable_named_pipe
Definition: mysqld.cc:1032
ulong connect_timeout
Definition: mysqld.cc:1130
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:1346
SHOW_VAR status_vars[]
Definition: mysqld.cc:8274
PSI_mutex_key key_LOCK_query_plan
Definition: mysqld.cc:10266
PSI_file_key key_file_load
Definition: mysqld.cc:10524
MYSQL_PLUGIN_IMPORT MY_TMPDIR mysql_tmpdir_list
Definition: mysqld.cc:1316
CHARSET_INFO * character_set_filesystem
Definition: mysqld.cc:1320
PSI_file_key key_file_general_log
Definition: mysqld.cc:10533
void set_remaining_args(int argc, char **argv)
Definition: mysqld.cc:1591
MYSQL_PLUGIN_IMPORT ulong max_connections
Definition: mysqld.cc:1171
PSI_stage_info stage_master_has_sent_all_binlog_to_slave
Definition: mysqld.cc:10609
bool opt_noacl
Definition: mysqld.cc:1095
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:192
PSI_stage_info stage_deleting_from_main_table
Definition: mysqld.cc:10592
ulong flush_time
Definition: mysqld.cc:1167
PSI_file_key key_file_fileparser
Definition: mysqld.cc:10522
MYSQL_PLUGIN_IMPORT std::atomic< int32 > connection_events_loop_aborted_flag
Definition: mysqld.cc:1001
PSI_stage_info stage_alter_inplace_prepare
Definition: mysqld.cc:10578
PSI_stage_info stage_finished_reading_one_binlog_switching_to_next_binlog
Definition: mysqld.cc:10599
Instrumentation helpers for conditions.
PSI_stage_info stage_deleting_from_reference_tables
Definition: mysqld.cc:10593
enum_binlog_error_action
Definition: mysqld.h:327
mysql_mutex_t LOCK_default_password_lifetime
Definition: mysqld.cc:1077
Common definition used by mysys, performance schema and server & client.
bool opt_log_slow_slave_statements
Definition: mysqld.cc:1065
std::atomic< query_id_t > atomic_global_query_id
Definition: mysqld.cc:1163
mysql_mutex_t LOCK_status
Definition: mysqld.cc:1335
bool opt_debugging
Definition: mysqld.cc:959
ulong specialflag
Definition: mysqld.cc:1168
PSI_file_key key_file_misc
Definition: mysqld.cc:10528
bool sha256_password_proxy_users
Definition: mysqld.cc:1088
bool opt_readonly
Definition: mysqld.cc:1057
PSI_statement_info stmt_info_rpl
Statement instrumentation key for replication.
Definition: mysqld.cc:949
PSI_file_key key_file_loadfile
Definition: mysqld.cc:10525
sigset_t mysqld_signal_mask
Definition: mysqld.cc:1361
PSI_stage_info stage_waiting_for_the_slave_thread_to_advance_position
Definition: mysqld.cc:10653
long opt_binlog_group_commit_sync_delay
Definition: mysqld.cc:1159
bool opt_general_log
Definition: mysqld.cc:987
mysql_cond_t COND_compress_gtid_table
Definition: mysqld.cc:1367
PSI_file_key key_select_to_file
Definition: mysqld.cc:10521
ulong binlog_cache_size
Definition: mysqld.cc:1154
handlerton * temptable_hton
Definition: mysqld.cc:1050
ulong connection_errors_internal
Number of connection errors from internal server errors.
Definition: mysqld.cc:1296
PSI_file_key key_file_init
Definition: mysqld.cc:10532
bool opt_partial_revokes
Definition: mysqld.cc:1075
PSI_stage_info stage_waiting_for_slave_mutex_on_exit
Definition: mysqld.cc:10649
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:49
PSI_cond_key key_RELAYLOG_update_cond
Definition: mysqld.cc:10439
Common definition between mysql server & client.
PSI_stage_info stage_slave_waiting_worker_queue
Definition: mysqld.cc:10628
Functions related to handling of plugins and other dynamically loaded libraries.
const char * log_error_dest
Definition: mysqld.cc:1270
ulong binlog_cache_disk_use
Definition: mysqld.cc:1169
char server_uuid[UUID_LENGTH+1]
Definition: mysqld.cc:1259
PSI_stage_info stage_waiting_for_gtid_to_be_committed
Definition: mysqld.cc:10644
bool opt_mandatory_roles_cache
Definition: mysqld.cc:984
enum_slave_type_conversions
Definition: mysqld.h:180
bool gtid_server_init()
GTID initialization.
Definition: mysqld.cc:2184
char * my_bind_addr_str
Definition: mysqld.cc:967
MYSQL_PLUGIN_IMPORT CHARSET_INFO * files_charset_info
Definition: mysqld.cc:1318
PSI_stage_info stage_searching_rows_for_update
Definition: mysqld.cc:10622
char * opt_log_error_services
Definition: mysqld.cc:1005
bool opt_local_infile
Definition: mysqld.cc:1033
bool mysqld_partial_revokes()
Get status partial_revokes on server.
Definition: mysqld.cc:10978
bool opt_skip_name_resolve
Definition: mysqld.cc:993
PSI_stage_info stage_alter_inplace
Definition: mysqld.cc:10579
uint opt_large_page_size
Definition: mysqld.cc:1071
PSI_mutex_key key_LOCK_current_cond
Definition: mysqld.cc:10269
Not a real command.
Definition: my_command.h:99
Rpl_global_filter rpl_global_filter
Definition: mysqld.cc:1309
uint test_flags
Definition: mysqld.cc:1124
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:10442
LEX_STRING opt_init_slave
Definition: mysqld.cc:979
enum_server_operational_state get_server_state()
Returns the current state of the server : booting, operational or shutting down.
Definition: mysqld.cc:10188
PSI_stage_info stage_logging_slow_query
Definition: mysqld.cc:10606
mysql_mutex_t LOCK_rotate_binlog_master_key
Definition: mysqld.cc:1385
Definition: mysqld.h:247
PSI_mutex_key key_RELAYLOG_LOCK_log_end_pos
Definition: mysqld.cc:10276
Performance schema instrumentation interface.
PSI_rwlock_key key_rwlock_rpl_filter_lock
Definition: mysqld.cc:10383
PSI_mutex_key key_TABLE_SHARE_LOCK_ha_data
Definition: mysqld.cc:10265
PSI_stage_info stage_freeing_items
Definition: mysqld.cc:10602
PSI_stage_info stage_execution_of_init_command
Definition: mysqld.cc:10597
PSI_mutex_key key_RELAYLOG_LOCK_flush_queue
Definition: mysqld.cc:10273
PSI_stage_info stage_checking_master_version
Definition: mysqld.cc:10582
char mysql_unpacked_real_data_home[]
Definition: mysqld.cc:1277
int64 query_id_t
Definition: mysqld.h:692
query_id_t next_query_id()
Definition: mysqld.h:699
PSI_cond_key key_relay_log_info_stop_cond
Definition: mysqld.cc:10434
mysql_mutex_t LOCK_sql_slave_skip_counter
Definition: mysqld.cc:1354
PSI_mutex_key key_mts_gaq_LOCK
Definition: mysqld.cc:10284
Definition: mysqld.h:181
PSI_stage_info stage_opening_tables
Definition: mysqld.cc:10610
bool mysqld_server_started
Definition: mysqld.cc:1387
ulonglong opt_mts_pending_jobs_size_max
Definition: mysqld.cc:1147
PSI_stage_info stage_after_create
Definition: mysqld.cc:10577
static char * shared_memory_base_name
Definition: mysqltest.cc:189
PSI_stage_info stage_cleaning_up
Definition: mysqld.cc:10584
mysql_mutex_t LOCK_collect_instance_log
Definition: mysqld.cc:1368
PSI_file_key key_file_log_event_data
Definition: mysqld.cc:10526
uint protocol_version
Definition: mysqld.cc:1127
ulonglong temptable_max_ram
Definition: mysqld.cc:974
PSI_stage_info stage_connecting_to_master
Definition: mysqld.cc:10587
mysql_mutex_t LOCK_global_system_variables
Definition: mysqld.cc:1335
ulong back_log
Definition: mysqld.cc:1130
bool opt_character_set_client_handshake
Definition: mysqld.cc:994
ulong sql_rnd_with_mutex()
Definition: mysqld.cc:1606
PSI_stage_info stage_sending_binlog_event_to_slave
Definition: mysqld.cc:10623
char * lc_messages_dir_ptr
Definition: mysqld.cc:1276
char * opt_log_error_suppression_list
Definition: mysqld.cc:1004
ulong max_relay_log_size
Definition: mysqld.cc:1141
Stage instrument information.
Definition: psi_stage_bits.h:71
PSI_mutex_key key_LOG_LOCK_log
Definition: mysqld.cc:10249
Performance schema instrumentation interface.
char * pidfile_name_ptr
Definition: mysqld.cc:1441
PSI_file_key key_file_frm
Definition: mysqld.cc:10523
PSI_stage_info stage_reading_event_from_the_relay_log
Definition: mysqld.cc:10616
ulong slow_launch_time
Definition: mysqld.cc:1139
bool opt_validate_config
Definition: mysqld.cc:867
PSI_mutex_key key_mutex_slave_parallel_pend_jobs
Definition: mysqld.cc:10261
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:1199
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:9778
bool temptable_use_mmap
Definition: mysqld.cc:975
bool mysql_native_password_proxy_users
Definition: mysqld.cc:1087
PSI_file_key key_file_slow_log
Definition: mysqld.cc:10534
PSI_mutex_key key_master_info_sleep_lock
Definition: mysqld.cc:10252
bool opt_require_secure_transport
Definition: mysqld.cc:1059
MYSQL_PLUGIN_IMPORT struct System_variables global_system_variables
Definition: mysqld.cc:1312
bool opt_slave_allow_batching
Definition: mysqld.cc:1038
ulong max_digest_length
Definition: sql_digest.cc:47
PSI_stage_info stage_starting
Definition: mysqld.cc:10658
uint host_cache_size
The size of the host_cache.
Definition: mysqld.cc:1014
char * argv[]
Definition: example1.cc:2
bool locked_in_memory
Definition: mysqld.cc:998
std::atomic< bool > offline_mode
Definition: mysqld.cc:1070
char glob_hostname[HOSTNAME_LENGTH+1]
Definition: mysqld.cc:1272
PSI_mutex_key key_relay_log_info_log_space_lock
Definition: mysqld.cc:10259
ulong delayed_queue_size
Definition: mysqld.cc:1165
MYSQL_PLUGIN_IMPORT uint lower_case_table_names
Definition: mysqld.cc:1128
MYSQL_PLUGIN_IMPORT char mysql_real_data_home[]
Definition: mysqld.cc:1273
ulong binlog_row_metadata
Definition: mysqld.cc:1111
mysql_mutex_t LOCK_password_reuse_interval
Definition: mysqld.cc:1080
mysql_cond_t COND_server_started
Definition: mysqld.cc:1364
PSI_mutex_key key_relay_log_info_thd_lock
Definition: mysqld.cc:10258
Definition: mysqld.h:143
PSI_stage_info stage_fulltext_initialization
Definition: mysqld.cc:10603
PSI_stage_info stage_suspending
Definition: mysqld.cc:10657
char * opt_relay_logname
Definition: mysqld.cc:1405
PSI_mutex_key key_LOCK_thd_query
Definition: mysqld.cc:10267
ulong binlog_stmt_cache_disk_use
Definition: mysqld.cc:1170
PSI_cond_key key_relay_log_info_sleep_cond
Definition: mysqld.cc:10435
Header for compiler-dependent features.
PSI_file_key key_file_binlog_index
Definition: mysqld.cc:10518
PSI_stage_info stage_manage_keys
Definition: mysqld.cc:10608
Definition: mysqld.h:248
Definition: mysqld.h:183
PSI_cond_key key_cond_mts_gaq
Definition: mysqld.cc:10438
static char * path
Definition: mysqldump.cc:123
PSI_stage_info stage_creating_tmp_table
Definition: mysqld.cc:10591
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
const char * timestamp_type_names[]
Definition: mysqld.cc:1122
Statement instrument information.
Definition: psi_statement_bits.h:108
char * default_storage_engine
Definition: mysqld.cc:972
bool read_only
Definition: mysqld.cc:1057
PSI_file_key key_file_tclog
Definition: mysqld.cc:10529
ulong open_files_limit
Definition: mysqld.cc:1141
bool log_bin_supplied
Definition: mysqld.cc:1255
ulong delayed_insert_limit
Definition: mysqld.cc:1165
PSI_stage_info stage_updating
Definition: mysqld.cc:10639
ulong max_prepared_stmt_count
Limit of the total number of prepared statements in the server.
Definition: mysqld.cc:1183
PSI_stage_info stage_slave_waiting_workers_to_exit
Definition: mysqld.cc:10631
unsigned int uint
Definition: uca-dump.cc:29
ulong slave_trans_retries
Definition: mysqld.cc:1142
#define FN_REFLEN
Definition: my_io.h:82
PSI_mutex_key key_mutex_slave_parallel_worker_count
Definition: mysqld.cc:10262
The class is a Rpl_filter representing global replication filters, with a vector that references all ...
Definition: rpl_filter.h:523
PSI_stage_info stage_changing_master
Definition: mysqld.cc:10581
bool opt_table_encryption_privilege_check
Definition: mysqld.cc:1216
time_t server_start_time
Definition: mysqld.cc:1257
PSI_stage_info stage_waiting_for_relay_log_space
Definition: mysqld.cc:10648
bool opt_general_log_raw
Definition: mysqld.cc:987
PSI_mutex_key key_RELAYLOG_LOCK_xids
Definition: mysqld.cc:10279
bool opt_log_unsafe_statements
Definition: mysqld.cc:1120
void gtid_server_cleanup()
GTID cleanup destroys objects and reset their pointer.
Definition: mysqld.cc:2155
PSI_stage_info stage_worker_waiting_for_commit_parent
Definition: mysqld.cc:10656
PSI_mutex_key key_structure_guard_mutex
Definition: mysqld.cc:10264
PSI_statement_info com_statement_info[(uint) COM_END+1]
Statement instrumentation keys (com).
Definition: mysqld.cc:4135
Definition: my_getopt.h:90
PSI_stage_info stage_purging_old_relay_logs
Definition: mysqld.cc:10613
MYSQL_PLUGIN_IMPORT char * mysql_data_home
Definition: mysqld.cc:1285
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:42
uint32_t uint32
Definition: my_inttypes.h:62
Performance schema instrumentation interface.
const char * mysql_real_data_home_ptr
Definition: mysqld.cc:1286
PSI_thread_key key_thread_parser_service
Definition: mysqld.cc:10494
int32 opt_binlog_max_flush_queue_time
Definition: mysqld.cc:1158
char * default_tmp_storage_engine
Definition: mysqld.cc:973
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2275
char * opt_init_file
Definition: mysqld.cc:1273
ulong binlog_stmt_cache_use
Definition: mysqld.cc:1170
PSI_stage_info stage_system_lock
Definition: mysqld.cc:10637
PSI_mutex_key key_master_info_thd_lock
Definition: mysqld.cc:10253
PSI_cond_key key_COND_active
Definition: mysqld.cc:10422
MYSQL_PLUGIN_IMPORT const char * my_localhost
Definition: mysqld.cc:858
const char * first_keyword
Definition: mysqld.cc:857
PSI_statement_info sql_statement_info[(uint) SQLCOM_END+1]
Statement instrumentation keys (sql).
Definition: mysqld.cc:4134
uint sync_relaylog_period
Definition: mysqld.cc:1196
void my_init_signals()
Definition: mysqld.cc:3111
ulong prepared_stmt_count
Current total number of prepared statements in the server.
Definition: mysqld.cc:1194
ulong tc_log_page_waits
Definition: tc_log.cc:108
Definition: m_ctype.h:359
unsigned int PSI_rwlock_key
Instrumented rwlock key.
Definition: psi_rwlock_bits.h:41
mysql_mutex_t LOCK_crypt
Definition: mysqld.cc:1335
PSI_stage_info stage_verifying_table
Definition: mysqld.cc:10643
Defines to make different thread packages compatible.
Instrumentation helpers for mutexes.
bool opt_large_pages
Definition: mysqld.cc:1067
struct rand_struct sql_rand
used by sql_class.cc:THD::THD()
Definition: mysqld.cc:1650
PSI_stage_info stage_preparing
Definition: mysqld.cc:10612
ulonglong max_binlog_stmt_cache_size
Definition: mysqld.cc:1161
mysql_mutex_t LOCK_server_started
Definition: mysqld.cc:1363
PSI_stage_info stage_flushing_relay_log_and_master_info_repository
Definition: mysqld.cc:10600
Definition: mysqld.h:182
bool opt_myisam_use_mmap
Definition: mysqld.cc:1069
Common header for many mysys elements.
ulong opt_log_timestamps
Definition: mysqld.cc:1123
ulong stored_program_def_size
Definition: mysqld.cc:1135
PSI_stage_info stage_init
Definition: mysqld.cc:10604
char * opt_keyring_migration_socket
Definition: mysqld.cc:1009
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:740
PSI_file_key key_file_relaylog_cache
Definition: mysqld.cc:10536
bool check_proxy_users
Definition: mysqld.cc:1087
PSI_file_key key_file_trn
Definition: mysqld.cc:10531
MYSQL_PLUGIN_IMPORT char server_version[SERVER_VERSION_LENGTH]
Definition: mysqld.h:640
long tc_heuristic_recover
Definition: mysqld.cc:1129
char * default_auth_plugin
Definition: mysqld.cc:1442
ulong rpl_stop_slave_timeout
Definition: mysqld.cc:1172
ulong max_connect_errors
Definition: mysqld.cc:1171
ulong binlog_cache_use
Definition: mysqld.cc:1169
enum_delay_key_write
Definition: mysqld.h:245
PSI_stage_info stage_optimizing
Definition: mysqld.cc:10611
uint32 gtid_executed_compression_period
Definition: mysqld.cc:1119
LEX_STRING opt_mandatory_roles
Definition: mysqld.cc:983
PSI_cond_key key_commit_order_manager_cond
Definition: mysqld.cc:10444
ulong locked_account_connection_count
Definition: mysqld.cc:1177
An instrumented rwlock structure.
Definition: mysql_rwlock_bits.h:50
bool listen_admin_interface_in_separate_thread
Definition: mysqld.cc:970
PSI_thread_key key_thread_bootstrap
Definition: mysqld.cc:10490
bool opt_slave_sql_verify_checksum
Definition: mysqld.cc:1113
bool server_id_supplied
Definition: mysqld.cc:995
PSI_stage_info stage_sql_thd_waiting_until_delay
Definition: mysqld.cc:10636
ulong opt_tc_log_size
Definition: mysqld.cc:1000
PSI_mutex_key key_gtid_ensure_index_mutex
Definition: mysqld.cc:10280
int32_t opt_regexp_time_limit
Definition: mysqld.cc:1098
ulong current_pid
Definition: mysqld.cc:1195
PSI_stage_info stage_rename_result_table
Definition: mysqld.cc:10620
mysql_rwlock_t LOCK_system_variables_hash
Definition: mysqld.cc:1359
PSI_file_key key_file_relaylog_index_cache
Definition: mysqld.cc:10538
Windows NT Service class library.
PSI_stage_info stage_waiting_to_finalize_termination
Definition: mysqld.cc:10654
PSI_cond_key key_COND_cache_status_changed
Definition: mysqld.cc:10424
PSI_cond_key key_relay_log_info_start_cond
Definition: mysqld.cc:10433
uint sync_masterinfo_period
Definition: mysqld.cc:1197
PSI_mutex_key key_thd_timer_mutex
Definition: mysqld.cc:10285
const char * opt_tc_log_file
Definition: mysqld.cc:1275
PSI_cond_key key_COND_pool
Definition: mysqld.cc:10423
bool log_bin_use_v1_row_events
Definition: mysqld.cc:1173
Performance schema instrumentation interface.
MYSQL_PLUGIN_IMPORT ulong server_id
Definition: mysqld.h:337
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:10495
pthread_attr_t my_thread_attr_t
Definition: my_thread_bits.h:48
enum_server_operational_state
Definition: mysqld.h:141
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:1210
ulong slave_exec_mode_options
Definition: mysqld.cc:1144
bool opt_slave_preserve_commit_order
Definition: mysqld.cc:1149
PSI_stage_info stage_queueing_master_event_to_the_relay_log
Definition: mysqld.cc:10615
PSI_stage_info stage_slave_has_read_all_relay_log
Definition: mysqld.cc:10625
ulong opt_log_throttle_queries_not_using_indexes
Definition: mysqld.cc:990
std::atomic< int32 > atomic_slave_open_temp_tables
Definition: mysqld.cc:1140
PSI_thread_key key_thread_handle_manager
Definition: mysqld.cc:10491
PSI_stage_info stage_slave_waiting_worker_to_free_events
Definition: mysqld.cc:10629
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:49
char * mysql_home_ptr
Definition: mysqld.cc:1441
char * opt_disabled_storage_engines
Definition: mysqld.cc:1054
PSI_stage_info stage_copy_to_tmp_table
Definition: mysqld.cc:10589
char * opt_mysql_tmpdir
Definition: mysqld.cc:1289
ulong opt_ssl_fips_mode
Definition: mysqld.cc:1686
PSI_mutex_key key_LOCK_error_log
Definition: mysqld.cc:10245
PSI_stage_info stage_waiting_for_no_channel_reference
Definition: mysqld.cc:10659
PSI_thread_key key_thread_one_connection
Definition: mysqld.cc:10492
int32_t opt_regexp_stack_limit
Definition: mysqld.cc:1099
int64 query_id_t
Definition: binlog.h:69
PSI_file_key key_file_relaylog_index
Definition: mysqld.cc:10537
const char * binary_keyword
Definition: mysqld.cc:857
mysql_mutex_t LOCK_uuid_generator
Definition: mysqld.cc:1335
PSI_socket_key key_socket_client_connection
Definition: mysqld.cc:10756
ulong log_error_verbosity
Definition: mysqld.cc:1015
PSI_stage_info stage_rpl_apply_row_evt_update
Definition: mysqld.cc:10633
Ignore the error and let server continue without binlogging.
Definition: mysqld.h:329
MYSQL_PLUGIN_IMPORT uint reg_ext_length
Definition: mysqld.cc:1280
ulong tc_log_page_size
Definition: tc_log.cc:114
ulong table_def_size
Definition: mysqld.cc:1136
PSI_thread_key key_thread_compress_gtid_table
Definition: mysqld.cc:10493
uint mysqld_port
Definition: mysqld.cc:1124
ABI for instrumented mutexes.
uint slave_net_timeout
Definition: mysqld.cc:1143
MYSQL_PLUGIN_IMPORT CHARSET_INFO * national_charset_info
Definition: mysqld.cc:1319
Common #defines and includes for file and socket I/O.
char lc_messages_dir[FN_REFLEN]
Definition: mysqld.cc:1273
handlerton * innodb_hton
Definition: mysqld.cc:1052
#define UUID_LENGTH
Definition: sql_const.h:411
Definition: mysqld.h:184
MYSQL_PLUGIN_IMPORT char pidfile_name[]
Definition: mysqld.cc:1261
PSI_mutex_key key_LOCK_thd_data
Definition: mysqld.cc:10246
mysql_mutex_t LOCK_slave_net_timeout
Definition: mysqld.cc:1355
bool lower_case_file_system
Definition: mysqld.cc:1066
PSI_rwlock_key key_rwlock_channel_lock
Definition: mysqld.cc:10381
int32_t int32
Definition: my_inttypes.h:61
mysql_mutex_t LOCK_user_conn
Definition: mysqld.cc:1335
PSI_stage_info stage_rpl_apply_row_evt_write
Definition: mysqld.cc:10632
PSI_socket_key key_socket_unix
Definition: mysqld.cc:10755
handlerton * heap_hton
Definition: mysqld.cc:1049
ulong aborted_threads
Definition: mysqld.cc:1164
long long int64
Definition: my_inttypes.h:68
PSI_file_key key_file_binlog_cache
Definition: mysqld.cc:876
char * my_admin_bind_addr_str
Definition: mysqld.cc:968
#define FN_EXTLEN
Definition: my_io.h:81
PSI_file_key key_file_binlog
Definition: mysqld.cc:10517
mysql_mutex_t LOCK_tls_ctx_options
Definition: mysqld.cc:1081
mysql_rwlock_t LOCK_sys_init_slave
Definition: mysqld.cc:1358
PSI_mutex_key key_RELAYLOG_LOCK_done
Definition: mysqld.cc:10272
ulong what_to_log
Definition: mysqld.cc:1138
A better implementation of the UNIX ctype(3) library.
const char * mysqld_unix_port
Definition: mysqld.cc:1288
PSI_stage_info stage_update
Definition: mysqld.cc:10638
bool opt_using_transactions
Definition: mysqld.cc:999
ulong opt_keyring_migration_port
Definition: mysqld.cc:1012
bool super_read_only
Definition: mysqld.cc:1058
char * default_tz_name
Definition: mysqld.cc:1268
void set_mysqld_partial_revokes(bool value)
Set partial_revokes with a given value.
Definition: mysqld.cc:10988
char default_binlogfile_name[FN_REFLEN]
Definition: mysqld.cc:1263
PSI_file_key key_file_binlog_index_cache
Definition: mysqld.cc:877
uint slave_rows_last_search_algorithm_used
Definition: mysqld.cc:1151
mysql_mutex_t LOCK_password_history
Definition: mysqld.cc:1079
bool migrate_connect_options
Variable to check if connection related options are set as part of keyring migration.
Definition: mysqld.cc:1013
PSI_mutex_key key_relay_log_info_data_lock
Definition: mysqld.cc:10256
const string value("\alue\)
ulonglong max_binlog_cache_size
Definition: mysqld.cc:1155
mysql_mutex_t LOCK_reset_gtid_table
Definition: mysqld.cc:1365
LEX_STRING opt_init_connect
Definition: mysqld.cc:979
Performance schema instrumentation interface.
PSI_stage_info stage_checking_permissions
Definition: mysqld.cc:10583
PSI_mutex_key key_relay_log_info_run_lock
Definition: mysqld.cc:10260
uint select_errors
Definition: mysqld.cc:1124
Abort the server.
Definition: mysqld.h:331
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:1044
PSI_socket_key key_socket_tcpip
Definition: mysqld.cc:10754
bool relay_log_purge
Definition: mysqld.cc:1060
struct System_variables max_system_variables
Definition: mysqld.cc:1313
PSI_stage_info stage_creating_table
Definition: mysqld.cc:10590
PSI_stage_info stage_query_end
Definition: mysqld.cc:10614
PSI_rwlock_key key_rwlock_LOCK_logger
Definition: mysqld.cc:10379
char * opt_keyring_migration_destination
Definition: mysqld.cc:1011
MYSQL_PLUGIN_IMPORT char reg_ext[FN_EXTLEN]
Definition: mysqld.cc:1273
mysql_mutex_t LOCK_slave_trans_dep_tracker
Definition: mysqld.cc:1356
PSI_mutex_key key_RELAYLOG_LOCK_commit
Definition: mysqld.cc:10270
PSI_mutex_key key_mutex_slave_reporting_capability_err_lock
Definition: mysqld.cc:10255
void kill_mysql(void)
Definition: mysqld.cc:2046
ulong opt_server_id_mask
Definition: mysqld.cc:1056
mysql_mutex_t LOCK_mandatory_roles
Definition: mysqld.cc:1078
Definition: mysqld.h:193
Time_zone * default_tz
Definition: mysqld.cc:1284
NTService * get_win_service_ptr()
Instrumentation helpers for rwlock.
Definition: nt_servc.h:23
const double log_10[309]
Definition: mysqld.cc:1218
PSI_cond_key key_COND_thr_lock
Definition: mysqld.cc:10443
PSI_stage_info stage_waiting_for_handler_commit
Definition: mysqld.cc:10645
ulong max_binlog_size
Definition: mysqld.cc:1141
bool opt_large_files
Definition: mysqld.cc:860
ulong tablespace_def_size
Definition: mysqld.cc:1137
bool opt_log_queries_not_using_indexes
Definition: mysqld.cc:989
PSI_stage_info stage_updating_reference_tables
Definition: mysqld.cc:10641
PSI_rwlock_key key_rwlock_channel_to_filter_lock
Definition: mysqld.cc:10384
Per thread status variables.
Definition: system_variables.h:399
volatile bool password_require_current
Definition: mysqld.cc:1073
bool opt_old_style_user_limits
Definition: mysqld.cc:1086
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:1205
MYSQL_PLUGIN_IMPORT CHARSET_INFO * table_alias_charset
Definition: mysqld.cc:1319
PSI_mutex_key key_RELAYLOG_LOCK_log
Definition: mysqld.cc:10275
PSI_stage_info stage_rename
Definition: mysqld.cc:10619
PSI_stage_info stage_end
Definition: mysqld.cc:10595
unsigned long ulong
Definition: my_inttypes.h:48
PSI_mutex_key key_RELAYLOG_LOCK_commit_queue
Definition: mysqld.cc:10271
Definition: mysqld.h:144
mysql_mutex_t LOCK_error_messages
Definition: mysqld.cc:1335
ulong binlog_expire_logs_seconds
Definition: mysqld.cc:1200
bool using_udf_functions
Definition: mysqld.cc:997
bool opt_slow_log
Definition: mysqld.cc:987
PSI_cond_key key_master_info_data_cond
Definition: mysqld.cc:10426
char *** get_remaining_argv()
Definition: mysqld.cc:1598
long opt_upgrade_mode
Definition: mysqld.cc:1029
Definition: dtoa.cc:601
ulong opt_binlog_group_commit_sync_no_delay_count
Definition: mysqld.cc:1160
bool opt_initialize
Definition: mysqld.cc:1030
PSI_file_key key_file_trg
Definition: mysqld.cc:10530
uint sync_relayloginfo_period
Definition: mysqld.cc:1197
ulong opt_mts_slave_parallel_workers
Definition: mysqld.cc:1146
bool opt_log_slow_extra
Definition: mysqld.cc:991
PSI_mutex_key key_hash_filo_lock
Definition: mysqld.cc:10244
PSI_cond_key key_master_info_sleep_cond
Definition: mysqld.cc:10429
Definition: mysqld.h:246
PSI_stage_info stage_requesting_binlog_dump
Definition: mysqld.cc:10621
PSI_cond_key key_master_info_stop_cond
Definition: mysqld.cc:10428
bool opt_slave_compressed_protocol
Definition: mysqld.cc:1033
mysql_mutex_t LOCK_compress_gtid_table
Definition: mysqld.cc:1366
bool sp_automatic_privileges
Definition: mysqld.cc:1096
ulong schema_def_size
Definition: mysqld.cc:1134
bool binlog_gtid_simple_recovery
Definition: mysqld.cc:1115
uint default_password_lifetime
Definition: mysqld.cc:1072
PSI_rwlock_key key_rwlock_resource_group_mgr_map_lock
Definition: mysqld.cc:10391
PSI_mutex_key key_RELAYLOG_LOCK_sync_queue
Definition: mysqld.cc:10278
PSI_mutex_key key_RELAYLOG_LOCK_sync
Definition: mysqld.cc:10277
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:777
Bitmap< 64 > Key_map
Definition: mysqld.h:70
bool clone_startup
True, if restarted from a cloned database.
Definition: mysqld.cc:1103
uint ha_open_options
Definition: mysqld.cc:1124
PSI_stage_info stage_statistics
Definition: mysqld.cc:10635
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:712
bool opt_bin_log
Definition: mysqld.cc:986