summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-07-26 15:22:31 +0300
committerEugene Kosov <claprix@yandex.ru>2019-07-26 15:22:31 +0300
commit4c7a74396497ae28779016b5bd59283aeee0b6f4 (patch)
tree31c49a23aede628f3afc3999faa290bc522923ad /mysys
parentde9e3930940c44458d254987066a81f1cea9b500 (diff)
parent29df1003d9faf09b635eedf10a0e3196e71bb297 (diff)
downloadmariadb-git-4c7a74396497ae28779016b5bd59283aeee0b6f4.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'mysys')
-rw-r--r--mysys/thr_mutex.c4
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)
{
/*