mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:04:13 +08:00
mdbx-windows: minor fix assertion inside mdbx_suspend_threads_before_remap()
.
Change-Id: I2026f8400aea3d7c0763556be3925206d8485684
This commit is contained in:
parent
55f41f40a1
commit
4583f4bc8c
@ -298,8 +298,7 @@ mdbx_suspend_threads_before_remap(MDBX_env *env, mdbx_handle_array_t **array) {
|
|||||||
} else {
|
} else {
|
||||||
/* Without LCK (i.e. read-only mode).
|
/* Without LCK (i.e. read-only mode).
|
||||||
* Walk through a snapshot of all running threads */
|
* Walk through a snapshot of all running threads */
|
||||||
mdbx_assert(env,
|
mdbx_assert(env, env->me_flags & (MDBX_EXCLUSIVE | MDBX_RDONLY));
|
||||||
env->me_txn0 == NULL || (env->me_flags & MDBX_EXCLUSIVE) != 0);
|
|
||||||
const HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
|
const HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
|
||||||
if (hSnapshot == INVALID_HANDLE_VALUE)
|
if (hSnapshot == INVALID_HANDLE_VALUE)
|
||||||
return GetLastError();
|
return GetLastError();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user