Skip to content

Commit f8b4015

Browse files
vuvovaNirbhay Choubey
authored andcommitted
init plugin psi keys before LOCK_plugin
1 parent 491f42d commit f8b4015

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sql/sql_plugin.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,10 +1543,6 @@ int plugin_init(int *argc, char **argv, int flags)
15431543

15441544
dlopen_count =0;
15451545

1546-
#ifdef HAVE_PSI_INTERFACE
1547-
init_plugin_psi_keys();
1548-
#endif
1549-
15501546
init_alloc_root(&plugin_mem_root, 4096, 4096, MYF(0));
15511547
init_alloc_root(&plugin_vars_mem_root, 4096, 4096, MYF(0));
15521548
init_alloc_root(&tmp_root, 4096, 4096, MYF(0));
@@ -4288,6 +4284,9 @@ int thd_setspecific(MYSQL_THD thd, MYSQL_THD_KEY_T key, void *value)
42884284

42894285
void plugin_mutex_init()
42904286
{
4287+
#ifdef HAVE_PSI_INTERFACE
4288+
init_plugin_psi_keys();
4289+
#endif
42914290
mysql_mutex_init(key_LOCK_plugin, &LOCK_plugin, MY_MUTEX_INIT_FAST);
42924291
}
42934292

0 commit comments

Comments
 (0)