mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:54:13 +08:00
mdbx: корректировка условия в assert-проверке для MDBX_TXN_DRAINED_GC.
This commit is contained in:
parent
1c174e84c4
commit
1549d3970c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user