diff --git a/src/mdbx_chk.c b/src/mdbx_chk.c index e05a10c5..e9003573 100644 --- a/src/mdbx_chk.c +++ b/src/mdbx_chk.c @@ -93,7 +93,7 @@ struct { #define dbi_main walk.dbi[MAIN_DBI] #define dbi_meta walk.dbi[CORE_DBS] -int envflags = MDBX_RDONLY | MDBX_EXCLUSIVE; +int envflags = MDBX_RDONLY | MDBX_EXCLUSIVE | MDBX_VALIDATION; MDBX_env *env; MDBX_txn *txn; MDBX_envinfo envinfo; diff --git a/src/mdbx_dump.c b/src/mdbx_dump.c index 0f57b599..170a5332 100644 --- a/src/mdbx_dump.c +++ b/src/mdbx_dump.c @@ -356,7 +356,9 @@ int main(int argc, char *argv[]) { rc = mdbx_env_open( env, envname, - envflags | (rescue ? MDBX_RDONLY | MDBX_EXCLUSIVE : MDBX_RDONLY), 0); + envflags | (rescue ? MDBX_RDONLY | MDBX_EXCLUSIVE | MDBX_VALIDATION + : MDBX_RDONLY), + 0); if (unlikely(rc != MDBX_SUCCESS)) { error("mdbx_env_open", rc); goto env_close;