mdbx: provide the parent-pgno during a tree traversal.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-07-28 13:41:27 +03:00
parent 79465dbc7f
commit 5c6d91f7c8
4 changed files with 20 additions and 9 deletions

View File

@@ -686,11 +686,12 @@ __cold static void chk_verbose_meta(MDBX_chk_scope_t *const scope, const unsigne
__cold static int chk_pgvisitor(const size_t pgno, const unsigned npages, void *const ctx, const int deep,
const walk_tbl_t *tbl_info, const size_t page_size, const page_type_t pagetype,
const MDBX_error_t page_err, const size_t nentries, const size_t payload_bytes,
const size_t header_bytes, const size_t unused_bytes) {
const size_t header_bytes, const size_t unused_bytes, const size_t parent_pgno) {
MDBX_chk_scope_t *const scope = ctx;
MDBX_chk_internal_t *const chk = scope->internal;
MDBX_chk_context_t *const usr = chk->usr;
MDBX_env *const env = usr->env;
(void)parent_pgno;
MDBX_chk_table_t *tbl;
int err = chk_get_tbl(scope, tbl_info, &tbl);