mdbx: add debug to mdbx_kill_page().

Change-Id: Ifbb3164989a19d8ea48288b4eda1a8bcf31790ff
This commit is contained in:
Leonid Yuriev 2020-12-13 13:06:18 +03:00
parent 56758372cf
commit 266bb70b7d

View File

@ -4035,6 +4035,8 @@ static bool mdbx_refund(MDBX_txn *txn) {
static __cold void mdbx_kill_page(MDBX_env *env, MDBX_page *mp, pgno_t pgno,
unsigned npages) {
mdbx_debug("kill%s %u page %" PRIaPGNO, IS_DIRTY(mp) ? " dirty" : "", npages,
pgno);
mdbx_assert(env, pgno >= NUM_METAS && npages);
if (IS_DIRTY(mp) || (env->me_flags & MDBX_WRITEMAP)) {
const size_t bytes = pgno2bytes(env, npages);