From 728f98d3de87c9457a1e25d9d2ef27c3c5f430a3 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 23 Jun 2019 14:26:11 +0300 Subject: [PATCH] mdbx-check: refine leaf-pages info (cosmetics). Change-Id: I0fdb467f1c1d51bfcdcef5edfe99c8e9ad66037e --- src/tools/mdbx_chk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index a1a46cf3..67ccb3d7 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -1180,7 +1180,9 @@ int main(int argc, char *argv[]) { uint64_t all_leaf = dbi->pages.leaf + dbi->pages.leaf_dupfixed; if (all_leaf) { print(", leaf %" PRIu64, all_leaf); - if (verbose > 2) + if (verbose > 2 && + (dbi->pages.leaf_dupfixed | dbi->pages.subleaf_dupsort | + dbi->pages.subleaf_dupsort)) print(" (usual %" PRIu64 ", sub-dupsort %" PRIu64 ", dupfixed %" PRIu64 ", sub-dupfixed %" PRIu64 ")", dbi->pages.leaf, dbi->pages.subleaf_dupsort,