From a441c9ffb1cb0f09e1193ca209e0a3aa818740fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Mon, 1 Aug 2022 14:44:33 +0300 Subject: [PATCH] mdbx: logging pgno of invalid root pages inside `meta_checktxnid()`. --- src/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core.c b/src/core.c index c1cbe0b1..a3fe4842 100644 --- a/src/core.c +++ b/src/core.c @@ -7772,9 +7772,9 @@ static bool meta_checktxnid(const MDBX_env *env, const MDBX_meta *meta, if (unlikely(root_txnid != freedb_mod_txnid)) { if (report) mdbx_warning( - "catch invalid root_page_txnid %" PRIaTXN + "catch invalid root_page %" PRIaPGNO " mod_txnid %" PRIaTXN " for %sdb.mod_txnid %" PRIaTXN " %s", - root_txnid, "free", freedb_mod_txnid, + freedb_root_pgno, root_txnid, "free", freedb_mod_txnid, "(workaround for incoherent flaw of unified page/buffer cache)"); ok = false; } @@ -7787,9 +7787,9 @@ static bool meta_checktxnid(const MDBX_env *env, const MDBX_meta *meta, if (unlikely(root_txnid != maindb_mod_txnid)) { if (report) mdbx_warning( - "catch invalid root_page_txnid %" PRIaTXN + "catch invalid root_page %" PRIaPGNO " mod_txnid %" PRIaTXN " for %sdb.mod_txnid %" PRIaTXN " %s", - root_txnid, "main", maindb_mod_txnid, + maindb_root_pgno, root_txnid, "main", maindb_mod_txnid, "(workaround for incoherent flaw of unified page/buffer cache)"); ok = false; }