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,10 +25,10 @@
typedef struct flagbit {
int bit;
char *name;
const char *name;
} flagbit;
flagbit dbflags[] = {{MDBX_DUPSORT, "dupsort"},
const flagbit dbflags[] = {{MDBX_DUPSORT, "dupsort"},
{MDBX_INTEGERKEY, "integerkey"},
{MDBX_REVERSEKEY, "reversekey"},
{MDBX_DUPFIXED, "dupfixed"},
@ -84,15 +84,14 @@ struct {
#define dbi_main walk.dbi[MAIN_DBI]
#define dbi_meta walk.dbi[CORE_DBS]
uint64_t total_unused_bytes;
int envflags = MDBX_RDONLY | MDBX_EXCLUSIVE;
MDBX_env *env;
MDBX_txn *txn;
MDBX_envinfo envinfo;
MDBX_stat envstat;
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;
bool ignore_wrong_order, quiet;
const char *only_subdb;