summaryrefslogtreecommitdiff
path: root/mysys/thr_mutex.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-02-27 11:52:20 +0100
committerSergei Golubchik <serg@mariadb.org>2020-03-10 19:24:23 +0100
commitc1c5222caed889169fab01612b335ef8b5f56ba5 (patch)
tree5a51707f5e35c4bd3a8cbccc4fd08a9fd67f6914 /mysys/thr_mutex.c
parent7af733a5a2cb7f79ffb5ff0129cad6db6f3cc359 (diff)
downloadmariadb-git-c1c5222caed889169fab01612b335ef8b5f56ba5.tar.gz
cleanup: PSI key is *always* the first argument
Diffstat (limited to 'mysys/thr_mutex.c')
-rw-r--r--mysys/thr_mutex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c
index 1b0ad56a6d5..4f495048f63 100644
--- a/mysys/thr_mutex.c
+++ b/mysys/thr_mutex.c
@@ -169,12 +169,12 @@ static int safe_mutex_lazy_init_deadlock_detection(safe_mutex_t *mp)
pthread_mutex_lock(&THR_LOCK_mutex);
mp->id= ++safe_mutex_id;
pthread_mutex_unlock(&THR_LOCK_mutex);
- my_hash_init2(mp->locked_mutex, 64, &my_charset_bin, 128,
+ my_hash_init2(PSI_NOT_INSTRUMENTED, mp->locked_mutex, 64, &my_charset_bin, 128,
offsetof(safe_mutex_deadlock_t, id), sizeof(mp->id), 0, 0, 0,
- HASH_UNIQUE, PSI_NOT_INSTRUMENTED);
- my_hash_init2(mp->used_mutex, 64, &my_charset_bin, 128,
+ HASH_UNIQUE);
+ my_hash_init2(PSI_NOT_INSTRUMENTED, mp->used_mutex, 64, &my_charset_bin, 128,
offsetof(safe_mutex_t, id), sizeof(mp->id), 0, 0, 0,
- HASH_UNIQUE, PSI_NOT_INSTRUMENTED);
+ HASH_UNIQUE);
return 0;
}