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