mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +08:00
mdbx: remove senseless assertions from mdbx_refund_loose()
.
Change-Id: I028ae6bafb9358b61287fc0201c246baf160ca03
This commit is contained in:
parent
0ab263b329
commit
d64b81c673
@ -3877,14 +3877,11 @@ static void mdbx_refund_reclaimed(MDBX_txn *txn) {
|
||||
}
|
||||
|
||||
static void mdbx_refund_loose(MDBX_txn *txn) {
|
||||
mdbx_tassert(txn, mdbx_dirtylist_check(txn));
|
||||
mdbx_tassert(txn, txn->tw.loose_pages != nullptr);
|
||||
mdbx_tassert(txn, txn->tw.loose_count > 0);
|
||||
|
||||
MDBX_dpl *const dl = txn->tw.dirtylist;
|
||||
mdbx_tassert(txn, dl->length >= txn->tw.loose_count);
|
||||
mdbx_tassert(txn, txn->tw.spill_pages == nullptr ||
|
||||
dl->length >= MDBX_PNL_SIZE(txn->tw.spill_pages));
|
||||
|
||||
pgno_t onstack[MDBX_CACHELINE_SIZE * 8 / sizeof(pgno_t)];
|
||||
MDBX_PNL suitable = onstack;
|
||||
|
Loading…
x
Reference in New Issue
Block a user