From d64b81c6732853747f2317b2e85349bd758f47b0 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 27 Dec 2020 23:40:32 +0300 Subject: [PATCH] mdbx: remove senseless assertions from `mdbx_refund_loose()`. Change-Id: I028ae6bafb9358b61287fc0201c246baf160ca03 --- src/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core.c b/src/core.c index 1986c963..911d7c3d 100644 --- a/src/core.c +++ b/src/core.c @@ -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;