mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 18:34:13 +08:00
mdbx-tools: minor refine mdbx_chk (use const strings).
Change-Id: I402c8d97cfa860f21b97bd20b6d6feb190af654e
This commit is contained in:
parent
7703312b88
commit
baee0be7ad
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user