mdbx-windows: minor fix assertion inside mdbx_suspend_threads_before_remap().

Change-Id: I2026f8400aea3d7c0763556be3925206d8485684
This commit is contained in:
Leonid Yuriev 2021-04-25 17:01:35 +03:00
parent 55f41f40a1
commit 4583f4bc8c

View File

@ -298,8 +298,7 @@ mdbx_suspend_threads_before_remap(MDBX_env *env, mdbx_handle_array_t **array) {
} else {
/* Without LCK (i.e. read-only mode).
* Walk through a snapshot of all running threads */
mdbx_assert(env,
env->me_txn0 == NULL || (env->me_flags & MDBX_EXCLUSIVE) != 0);
mdbx_assert(env, env->me_flags & (MDBX_EXCLUSIVE | MDBX_RDONLY));
const HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
if (hSnapshot == INVALID_HANDLE_VALUE)
return GetLastError();