mdbx-posix: avoid Coverity warnings (don't try to recover mutex if unlock failed).

Change-Id: Iaa5b567c810b7e3fd6f5003111e41b752d83b8bb
This commit is contained in:
Leonid Yuriev 2019-09-11 20:51:36 +03:00
parent 7d9d3528c5
commit 8231aa5b47

View File

@ -457,7 +457,7 @@ static int mdbx_robust_unlock(MDBX_env *env, pthread_mutex_t *mutex) {
int rc = pthread_mutex_unlock(mutex);
mdbx_jitter4testing(true);
if (unlikely(rc != 0))
rc = mdbx_mutex_failed(env, mutex, rc);
env->me_flags |= MDBX_FATAL_ERROR;
return rc;
}