mdbx: корректировка условия в assert-проверке для MDBX_TXN_DRAINED_GC (backport).

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-03-05 15:07:00 +03:00
parent 2b88c6261f
commit 2d7fe42327

View File

@ -7290,7 +7290,7 @@ static pgr_t page_alloc_slowpath(const MDBX_cursor *const mc, const size_t num,
//---------------------------------------------------------------------------
if (unlikely(!is_gc_usable(txn, mc, flags))) {
eASSERT(env, txn->mt_flags & MDBX_TXN_DRAINED_GC);
eASSERT(env, (txn->mt_flags & MDBX_TXN_DRAINED_GC) || num > 1);
goto no_gc;
}