mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:24:12 +08:00
mdbx: fix assertion inside mdbx_suspend_threads_before_remap().
Change-Id: If01fc5f655922c55b3955f2b00c93b80328c5232
This commit is contained in:
parent
f425e98eb5
commit
dfea68270a
@ -253,7 +253,8 @@ int mdbx_suspend_threads_before_remap(MDBX_env *env,
|
||||
} else {
|
||||
/* Without LCK (i.e. read-only mode).
|
||||
* Walk thougth a snapshot of all running threads */
|
||||
mdbx_assert(env, env->me_txn0 == NULL);
|
||||
mdbx_assert(env,
|
||||
env->me_txn0 == NULL || (env->me_flags & MDBX_EXCLUSIVE) != 0);
|
||||
const HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);
|
||||
if (hSnapshot == INVALID_HANDLE_VALUE)
|
||||
return GetLastError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user