mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +08:00
mdbx: корректировка условия в assert-проверке для MDBX_TXN_DRAINED_GC (backport).
This commit is contained in:
parent
2b88c6261f
commit
2d7fe42327
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user