From acc69695945a448a832643c604245cd361380f6c Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 10 Sep 2019 19:28:07 +0300 Subject: [PATCH] mdbx-tools: minor refine mdbx_chk. Change-Id: I71db479944a305f03019d985b91a39cd51ba9981 --- src/tools/mdbx_chk.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tools/mdbx_chk.c b/src/tools/mdbx_chk.c index 4dae74fc..104dc726 100644 --- a/src/tools/mdbx_chk.c +++ b/src/tools/mdbx_chk.c @@ -94,7 +94,7 @@ MDBX_stat envstat; size_t maxkeysize, userdb_count, skipped_subdb; uint64_t reclaimable_pages, gc_pages, alloc_pages, unused_pages, backed_pages; unsigned verbose; -char ignore_wrong_order, quiet; +bool ignore_wrong_order, quiet; const char *only_subdb; struct problem { @@ -747,7 +747,7 @@ static void usage(char *prog) { " -n\t\tNOSUBDIR mode for open\n" " -q\t\tbe quiet\n" " -w\t\tlock DB for writing while checking\n" - " -d\t\tdisable page-by-page traversal of b-tree\n" + " -d\t\tdisable page-by-page traversal of B-tree\n" " -s subdb\tprocess a specific subdatabase only\n" " -c\t\tforce cooperative mode (don't try exclusive)\n" " -i\t\tignore wrong order errors (for custom comparators case)\n", @@ -909,7 +909,7 @@ int main(int argc, char *argv[]) { char *prog = argv[0]; char *envname; int problems_maindb = 0, problems_freedb = 0, problems_meta = 0; - int dont_traversal = 0; + bool dont_traversal = false; bool locked = false; double elapsed; @@ -953,7 +953,7 @@ int main(int argc, char *argv[]) { verbose++; break; case 'q': - quiet = 1; + quiet = true; break; case 'n': envflags |= MDBX_NOSUBDIR; @@ -965,7 +965,7 @@ int main(int argc, char *argv[]) { envflags &= ~MDBX_EXCLUSIVE; break; case 'd': - dont_traversal = 1; + dont_traversal = true; break; case 's': if (only_subdb && strcmp(only_subdb, optarg)) @@ -973,7 +973,7 @@ int main(int argc, char *argv[]) { only_subdb = optarg; break; case 'i': - ignore_wrong_order = 1; + ignore_wrong_order = true; break; default: usage(prog);