diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-19 11:21:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-19 11:21:43 +0300 |
commit | 97e9e75a4a7ef2e402a394ffb4febdc60695bb40 (patch) | |
tree | 5b5f772533ed36571a731ed3a860e96a2de2f00f | |
parent | 6fa77048dee795a3df01ce8a6ae023360822756c (diff) |
fix for wrong assert in libmdbx
-rw-r--r-- | libs/libmdbx/src/src/lck-windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |