diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-02-27 11:52:20 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-10 19:24:23 +0100 |
commit | c1c5222caed889169fab01612b335ef8b5f56ba5 (patch) | |
tree | 5a51707f5e35c4bd3a8cbccc4fd08a9fd67f6914 /mysys/waiting_threads.c | |
parent | 7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359 (diff) | |
download | mariadb-git-c1c5222caed889169fab01612b335ef8b5f56ba5.tar.gz |
cleanup: PSI key is *always* the first argument
Diffstat (limited to 'mysys/waiting_threads.c')
-rw-r--r-- | mysys/waiting_threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/waiting_threads.c b/mysys/waiting_threads.c index a930e1d203b..2a97c6133e8 100644 --- a/mysys/waiting_threads.c +++ b/mysys/waiting_threads.c @@ -394,7 +394,7 @@ static void wt_resource_create(uchar *arg) bzero(rc, sizeof(*rc)); rc_rwlock_init(rc); mysql_cond_init(key_WT_RESOURCE_cond, &rc->cond, 0); - my_init_dynamic_array(&rc->owners, PSI_INSTRUMENT_ME, + my_init_dynamic_array(PSI_INSTRUMENT_ME, &rc->owners, sizeof(WT_THD *), 0, 5, MYF(0)); DBUG_VOID_RETURN; } @@ -508,7 +508,7 @@ void wt_thd_lazy_init(WT_THD *thd, const ulong *ds, const ulong *ts, thd->deadlock_search_depth_long= dl; thd->timeout_long= tl; /* dynamic array is also initialized lazily - without memory allocations */ - my_init_dynamic_array(&thd->my_resources, PSI_INSTRUMENT_ME, + my_init_dynamic_array(PSI_INSTRUMENT_ME, &thd->my_resources, sizeof(WT_RESOURCE *), 0, 5, MYF(0)); #ifndef DBUG_OFF thd->name= my_thread_name(); |