@@ -74,10 +74,6 @@ int64 MAX_DELAY = INT_MAX32;
74
74
75
75
/* * variables used by connection_delay.cc */
76
76
static mysql_rwlock_t connection_event_delay_lock;
77
- static PSI_rwlock_key key_connection_event_delay_lock;
78
- static PSI_rwlock_info all_rwlocks[] = {{&key_connection_event_delay_lock,
79
- " connection_event_delay_lock" , 0 , 0 ,
80
- PSI_DOCUMENT_ME}};
81
77
82
78
static opt_connection_control opt_enums[] = {OPT_FAILED_CONNECTIONS_THRESHOLD,
83
79
OPT_MIN_CONNECTION_DELAY,
@@ -461,29 +457,14 @@ void Connection_delay_action::conditional_wait(MYSQL_THD thd,
461
457
462
458
/* * PSI_stage_info for thd_enter_cond/thd_exit_cond */
463
459
PSI_stage_info old_stage;
464
- PSI_stage_info stage_waiting_in_connection_control_plugin = {
465
- 0 , " Waiting in connection_control plugin" , 0 , PSI_DOCUMENT_ME};
466
460
467
461
/* * Initialize mutex required for mysql_cond_timedwait */
468
462
mysql_mutex_t connection_delay_mutex;
469
- const char *category = " conn_delay" ;
470
- PSI_mutex_key key_connection_delay_mutex;
471
- PSI_mutex_info connection_delay_mutex_info[] = {
472
- {&key_connection_delay_mutex, " connection_delay_mutex" ,
473
- PSI_FLAG_SINGLETON, 0 , PSI_DOCUMENT_ME}};
474
- int count_mutex = array_elements (connection_delay_mutex_info);
475
- mysql_mutex_register (category, connection_delay_mutex_info, count_mutex);
476
463
mysql_mutex_init (key_connection_delay_mutex, &connection_delay_mutex,
477
464
MY_MUTEX_INIT_FAST);
478
465
479
466
/* Initialize condition to wait for */
480
467
mysql_cond_t connection_delay_wait_condition;
481
- PSI_cond_key key_connection_delay_wait;
482
- PSI_cond_info connection_delay_wait_info[] = {
483
- {&key_connection_delay_wait, " connection_delay_wait_condition" , 0 , 0 ,
484
- PSI_DOCUMENT_ME}};
485
- int count_cond = array_elements (connection_delay_wait_info);
486
- mysql_cond_register (category, connection_delay_wait_info, count_cond);
487
468
mysql_cond_init (key_connection_delay_wait, &connection_delay_wait_condition);
488
469
489
470
/* * Register wait condition with THD */
@@ -791,9 +772,6 @@ bool init_connection_delay_event(
791
772
/*
792
773
1. Initialize lock(s)
793
774
*/
794
- const char *category = " conn_control" ;
795
- int count = array_elements (all_rwlocks);
796
- mysql_rwlock_register (category, all_rwlocks, count);
797
775
mysql_rwlock_init (key_connection_event_delay_lock,
798
776
&connection_event_delay_lock);
799
777
g_max_failed_connection_handler = new Connection_delay_action (
0 commit comments