mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:14:14 +08:00
mdbx-posix: minor fix mdbx_lck_destroy().
This commit is contained in:
parent
137d652d77
commit
ed58af2512
@ -265,8 +265,8 @@ void __cold mdbx_lck_destroy(MDBX_env *env) {
|
||||
* locks should be released here explicitly with properly order. */
|
||||
if (env->me_lfd != INVALID_HANDLE_VALUE)
|
||||
(void)mdbx_lck_op(env->me_lfd, OP_SETLK, F_UNLCK, 0, OFF_T_MAX);
|
||||
assert(env->me_fd != INVALID_HANDLE_VALUE);
|
||||
(void)mdbx_lck_op(env->me_fd, OP_SETLK, F_UNLCK, 0, OFF_T_MAX);
|
||||
if (env->me_fd != INVALID_HANDLE_VALUE)
|
||||
(void)mdbx_lck_op(env->me_fd, OP_SETLK, F_UNLCK, 0, OFF_T_MAX);
|
||||
}
|
||||
|
||||
static int mdbx_robust_lock(MDBX_env *env, pthread_mutex_t *mutex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user