mdbx-tools: minor refine mdbx_chk (use const strings).

Change-Id: I402c8d97cfa860f21b97bd20b6d6feb190af654e
This commit is contained in:
Leonid Yuriev 2019-11-15 13:10:29 +03:00
parent 7703312b88
commit baee0be7ad

View File

@ -25,16 +25,16 @@
typedef struct flagbit { typedef struct flagbit {
int bit; int bit;
char *name; const char *name;
} flagbit; } flagbit;
flagbit dbflags[] = {{MDBX_DUPSORT, "dupsort"}, const flagbit dbflags[] = {{MDBX_DUPSORT, "dupsort"},
{MDBX_INTEGERKEY, "integerkey"}, {MDBX_INTEGERKEY, "integerkey"},
{MDBX_REVERSEKEY, "reversekey"}, {MDBX_REVERSEKEY, "reversekey"},
{MDBX_DUPFIXED, "dupfixed"}, {MDBX_DUPFIXED, "dupfixed"},
{MDBX_REVERSEDUP, "reversedup"}, {MDBX_REVERSEDUP, "reversedup"},
{MDBX_INTEGERDUP, "integerdup"}, {MDBX_INTEGERDUP, "integerdup"},
{0, NULL}}; {0, NULL}};
#if defined(_WIN32) || defined(_WIN64) #if defined(_WIN32) || defined(_WIN64)
#include "wingetopt.h" #include "wingetopt.h"
@ -84,15 +84,14 @@ struct {
#define dbi_main walk.dbi[MAIN_DBI] #define dbi_main walk.dbi[MAIN_DBI]
#define dbi_meta walk.dbi[CORE_DBS] #define dbi_meta walk.dbi[CORE_DBS]
uint64_t total_unused_bytes;
int envflags = MDBX_RDONLY | MDBX_EXCLUSIVE; int envflags = MDBX_RDONLY | MDBX_EXCLUSIVE;
MDBX_env *env; MDBX_env *env;
MDBX_txn *txn; MDBX_txn *txn;
MDBX_envinfo envinfo; MDBX_envinfo envinfo;
MDBX_stat envstat; MDBX_stat envstat;
size_t maxkeysize, userdb_count, skipped_subdb; size_t maxkeysize, userdb_count, skipped_subdb;
uint64_t reclaimable_pages, gc_pages, alloc_pages, unused_pages, backed_pages; uint64_t total_unused_bytes, reclaimable_pages, gc_pages, alloc_pages,
unused_pages, backed_pages;
unsigned verbose; unsigned verbose;
bool ignore_wrong_order, quiet; bool ignore_wrong_order, quiet;
const char *only_subdb; const char *only_subdb;