From 97e9e75a4a7ef2e402a394ffb4febdc60695bb40 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2018 11:21:43 +0300 Subject: fix for wrong assert in libmdbx --- libs/libmdbx/src/src/lck-windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/libmdbx/src') diff --git a/libs/libmdbx/src/src/lck-windows.c b/libs/libmdbx/src/src/lck-windows.c index ab3fae57f8..327979e653 100644 --- a/libs/libmdbx/src/src/lck-windows.c +++ b/libs/libmdbx/src/src/lck-windows.c @@ -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(); -- cgit v1.2.3