@@ -382,7 +382,7 @@ static bool binlog_format_used= false;
382
382
LEX_STRING opt_init_connect, opt_init_slave;
383
383
mysql_cond_t COND_thread_cache;
384
384
static mysql_cond_t COND_flush_thread_cache;
385
- mysql_cond_t COND_slave_init ;
385
+ mysql_cond_t COND_slave_background ;
386
386
static DYNAMIC_ARRAY all_options;
387
387
388
388
/* Global variables */
@@ -720,7 +720,7 @@ mysql_mutex_t
720
720
LOCK_crypt,
721
721
LOCK_global_system_variables,
722
722
LOCK_user_conn, LOCK_slave_list, LOCK_active_mi,
723
- LOCK_connection_count, LOCK_error_messages, LOCK_slave_init ;
723
+ LOCK_connection_count, LOCK_error_messages, LOCK_slave_background ;
724
724
725
725
mysql_mutex_t LOCK_stats, LOCK_global_user_client_stats,
726
726
LOCK_global_table_stats, LOCK_global_index_stats;
@@ -902,7 +902,7 @@ PSI_mutex_key key_LOCK_gtid_waiting;
902
902
903
903
PSI_mutex_key key_LOCK_after_binlog_sync;
904
904
PSI_mutex_key key_LOCK_prepare_ordered, key_LOCK_commit_ordered,
905
- key_LOCK_slave_init ;
905
+ key_LOCK_slave_background ;
906
906
PSI_mutex_key key_TABLE_SHARE_LOCK_share;
907
907
908
908
static PSI_mutex_info all_server_mutexes[]=
@@ -968,7 +968,7 @@ static PSI_mutex_info all_server_mutexes[]=
968
968
{ &key_LOCK_prepare_ordered, " LOCK_prepare_ordered" , PSI_FLAG_GLOBAL},
969
969
{ &key_LOCK_after_binlog_sync, " LOCK_after_binlog_sync" , PSI_FLAG_GLOBAL},
970
970
{ &key_LOCK_commit_ordered, " LOCK_commit_ordered" , PSI_FLAG_GLOBAL},
971
- { &key_LOCK_slave_init , " LOCK_slave_init " , PSI_FLAG_GLOBAL},
971
+ { &key_LOCK_slave_background , " LOCK_slave_background " , PSI_FLAG_GLOBAL},
972
972
{ &key_LOG_INFO_lock, " LOG_INFO::lock" , 0 },
973
973
{ &key_LOCK_thread_count, " LOCK_thread_count" , PSI_FLAG_GLOBAL},
974
974
{ &key_LOCK_thread_cache, " LOCK_thread_cache" , PSI_FLAG_GLOBAL},
@@ -1023,7 +1023,7 @@ PSI_cond_key key_TC_LOG_MMAP_COND_queue_busy;
1023
1023
PSI_cond_key key_COND_rpl_thread_queue, key_COND_rpl_thread,
1024
1024
key_COND_rpl_thread_stop, key_COND_rpl_thread_pool,
1025
1025
key_COND_parallel_entry, key_COND_group_commit_orderer,
1026
- key_COND_prepare_ordered, key_COND_slave_init ;
1026
+ key_COND_prepare_ordered, key_COND_slave_background ;
1027
1027
PSI_cond_key key_COND_wait_gtid, key_COND_gtid_ignore_duplicates;
1028
1028
1029
1029
static PSI_cond_info all_server_conds[]=
@@ -1073,15 +1073,15 @@ static PSI_cond_info all_server_conds[]=
1073
1073
{ &key_COND_parallel_entry, " COND_parallel_entry" , 0 },
1074
1074
{ &key_COND_group_commit_orderer, " COND_group_commit_orderer" , 0 },
1075
1075
{ &key_COND_prepare_ordered, " COND_prepare_ordered" , 0 },
1076
- { &key_COND_slave_init , " COND_slave_init " , 0 },
1076
+ { &key_COND_slave_background , " COND_slave_background " , 0 },
1077
1077
{ &key_COND_wait_gtid, " COND_wait_gtid" , 0 },
1078
1078
{ &key_COND_gtid_ignore_duplicates, " COND_gtid_ignore_duplicates" , 0 }
1079
1079
};
1080
1080
1081
1081
PSI_thread_key key_thread_bootstrap, key_thread_delayed_insert,
1082
1082
key_thread_handle_manager, key_thread_main,
1083
1083
key_thread_one_connection, key_thread_signal_hand,
1084
- key_thread_slave_init , key_rpl_parallel_thread;
1084
+ key_thread_slave_background , key_rpl_parallel_thread;
1085
1085
1086
1086
static PSI_thread_info all_server_threads[]=
1087
1087
{
@@ -1107,7 +1107,7 @@ static PSI_thread_info all_server_threads[]=
1107
1107
{ &key_thread_main, " main" , PSI_FLAG_GLOBAL},
1108
1108
{ &key_thread_one_connection, " one_connection" , 0 },
1109
1109
{ &key_thread_signal_hand, " signal_handler" , PSI_FLAG_GLOBAL},
1110
- { &key_thread_slave_init , " slave_init " , PSI_FLAG_GLOBAL},
1110
+ { &key_thread_slave_background , " slave_background " , PSI_FLAG_GLOBAL},
1111
1111
{ &key_rpl_parallel_thread, " rpl_parallel_thread" , 0 }
1112
1112
};
1113
1113
@@ -2268,8 +2268,8 @@ static void clean_up_mutexes()
2268
2268
mysql_cond_destroy (&COND_prepare_ordered);
2269
2269
mysql_mutex_destroy (&LOCK_after_binlog_sync);
2270
2270
mysql_mutex_destroy (&LOCK_commit_ordered);
2271
- mysql_mutex_destroy (&LOCK_slave_init );
2272
- mysql_cond_destroy (&COND_slave_init );
2271
+ mysql_mutex_destroy (&LOCK_slave_background );
2272
+ mysql_cond_destroy (&COND_slave_background );
2273
2273
DBUG_VOID_RETURN;
2274
2274
}
2275
2275
@@ -4638,9 +4638,9 @@ static int init_thread_environment()
4638
4638
MY_MUTEX_INIT_SLOW);
4639
4639
mysql_mutex_init (key_LOCK_commit_ordered, &LOCK_commit_ordered,
4640
4640
MY_MUTEX_INIT_SLOW);
4641
- mysql_mutex_init (key_LOCK_slave_init , &LOCK_slave_init ,
4641
+ mysql_mutex_init (key_LOCK_slave_background , &LOCK_slave_background ,
4642
4642
MY_MUTEX_INIT_SLOW);
4643
- mysql_cond_init (key_COND_slave_init , &COND_slave_init , NULL );
4643
+ mysql_cond_init (key_COND_slave_background , &COND_slave_background , NULL );
4644
4644
4645
4645
#ifdef HAVE_OPENSSL
4646
4646
mysql_mutex_init (key_LOCK_des_key_file,
@@ -10131,6 +10131,9 @@ PSI_stage_info stage_waiting_for_rpl_thread_pool= { 0, "Waiting while replicatio
10131
10131
PSI_stage_info stage_master_gtid_wait_primary= { 0 , " Waiting in MASTER_GTID_WAIT() (primary waiter)" , 0 };
10132
10132
PSI_stage_info stage_master_gtid_wait= { 0 , " Waiting in MASTER_GTID_WAIT()" , 0 };
10133
10133
PSI_stage_info stage_gtid_wait_other_connection= { 0 , " Waiting for other master connection to process GTID received on multiple master connections" , 0 };
10134
+ PSI_stage_info stage_slave_background_process_request= { 0 , " Processing requests" , 0 };
10135
+ PSI_stage_info stage_slave_background_wait_request= { 0 , " Waiting for requests" , 0 };
10136
+ PSI_stage_info stage_waiting_for_deadlock_kill= { 0 , " Waiting for parallel replication deadlock handling to complete" , 0 };
10134
10137
10135
10138
#ifdef HAVE_PSI_INTERFACE
10136
10139
@@ -10255,7 +10258,9 @@ PSI_stage_info *all_server_stages[]=
10255
10258
& stage_waiting_to_get_readlock,
10256
10259
& stage_master_gtid_wait_primary,
10257
10260
& stage_master_gtid_wait,
10258
- & stage_gtid_wait_other_connection
10261
+ & stage_gtid_wait_other_connection,
10262
+ & stage_slave_background_process_request,
10263
+ & stage_slave_background_wait_request
10259
10264
};
10260
10265
10261
10266
PSI_socket_key key_socket_tcpip, key_socket_unix, key_socket_client_connection;
0 commit comments