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

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

View File

@ -7772,7 +7772,7 @@ static pgr_t page_alloc_slowpath(const MDBX_cursor *const mc, const size_t num,
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
if (unlikely(!is_gc_usable(txn, mc, flags))) { 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; goto no_gc;
} }