mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:54:14 +08:00
mdbx: logging pgno of invalid root pages inside meta_checktxnid()
.
This commit is contained in:
parent
71c3d20c01
commit
a441c9ffb1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user