lmdb: mdb_chk tool (initial).

Change-Id: I7d31e0fb45ab56cf8d6df56939e5b3ded6b8e3e5
This commit is contained in:
Leo Yuriev
2015-04-29 07:59:42 +03:00
parent 4a04e59dba
commit 23720958b6
5 changed files with 534 additions and 4 deletions

3
mdb.c
View File

@@ -9480,8 +9480,7 @@ void mdb_dbi_close(MDB_env *env, MDB_dbi dbi)
int mdb_dbi_flags(MDB_txn *txn, MDB_dbi dbi, unsigned int *flags)
{
/* We could return the flags for the FREE_DBI too but what's the point? */
if (dbi == FREE_DBI || !TXN_DBI_EXIST(txn, dbi))
if (!TXN_DBI_EXIST(txn, dbi))
return EINVAL;
*flags = txn->mt_dbs[dbi].md_flags & PERSISTENT_FLAGS;
return MDB_SUCCESS;