mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:28:21 +08:00
mdbx-posix: avoid Coverity warnings (don't try to recover mutex if unlock failed).
Change-Id: Iaa5b567c810b7e3fd6f5003111e41b752d83b8bb
This commit is contained in:
parent
7d9d3528c5
commit
8231aa5b47
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user