From ac0f4e14a89b45a9807c98921d0017c96feaa12b Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 10 Jan 2021 13:46:57 +0300 Subject: [PATCH] mdbx: minor fix `mdbx_page_new()` debug output. Change-Id: I2f386ec6276cab404607b5c3a79d8028d73dad62 --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 5288be74..e231b5f2 100644 --- a/src/core.c +++ b/src/core.c @@ -13704,8 +13704,8 @@ static int mdbx_page_new(MDBX_cursor *mc, unsigned flags, unsigned num, if (unlikely((rc = mdbx_page_alloc(mc, num, &np, MDBX_ALLOC_ALL)))) return rc; *mp = np; - mdbx_debug("allocated new page #%" PRIaPGNO ", size %u", np->mp_pgno, - mc->mc_txn->mt_env->me_psize); + mdbx_debug("db %u allocated new page #%" PRIaPGNO ", size %u", mc->mc_dbi, + np->mp_pgno, mc->mc_txn->mt_env->me_psize); np->mp_flags = (uint16_t)(flags | P_DIRTY); np->mp_txnid = INVALID_TXNID; np->mp_lower = 0;