mdbx: исправление assert-проверок внутри osal_txn_lock().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2023-10-31 12:11:59 +03:00
parent 7a413406be
commit 54920cd07b
2 changed files with 5 additions and 2 deletions

View File

@@ -179,7 +179,6 @@ static int funlock(mdbx_filehandle_t fd, size_t offset, size_t bytes) {
#define DXB_WHOLE 0, DXB_MAXLEN
int osal_txn_lock(MDBX_env *env, bool dontwait) {
eASSERT(env, !env->me_txn0->mt_owner);
if (dontwait) {
if (!TryEnterCriticalSection(&env->me_windowsbug_lock))
return MDBX_BUSY;
@@ -195,6 +194,7 @@ int osal_txn_lock(MDBX_env *env, bool dontwait) {
}
}
eASSERT(env, !env->me_txn0->mt_owner);
if (env->me_flags & MDBX_EXCLUSIVE)
goto done;