diff options
author | Eugene Kosov <claprix@yandex.ru> | 2019-07-26 15:22:31 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2019-07-26 15:22:31 +0300 |
commit | 4c7a74396497ae28779016b5bd59283aeee0b6f4 (patch) | |
tree | 31c49a23aede628f3afc3999faa290bc522923ad /mysys | |
parent | de9e3930940c44458d254987066a81f1cea9b500 (diff) | |
parent | 29df1003d9faf09b635eedf10a0e3196e71bb297 (diff) | |
download | mariadb-git-4c7a74396497ae28779016b5bd59283aeee0b6f4.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/thr_mutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c index 85d42d4fd0a..568ed3ecb46 100644 --- a/mysys/thr_mutex.c +++ b/mysys/thr_mutex.c @@ -237,6 +237,8 @@ int safe_mutex_lock(safe_mutex_t *mp, myf my_flags, const char *file, int error; DBUG_PRINT("mutex", ("%s (0x%lx) locking", mp->name ? mp->name : "Null", (ulong) mp)); + + pthread_mutex_lock(&mp->global); if (!mp->file) { fprintf(stderr, @@ -245,8 +247,6 @@ int safe_mutex_lock(safe_mutex_t *mp, myf my_flags, const char *file, fflush(stderr); abort(); } - - pthread_mutex_lock(&mp->global); if (mp->count > 0) { /* |