mdbx: add env_open_for_recovery() (squashed).

Change-Id: I0151b21610def433745c33d1f6e0b66ce655d1a9
This commit is contained in:
Leonid Yuriev
2020-09-19 00:18:55 +03:00
parent b321f67ed2
commit d9daf2944d
3 changed files with 126 additions and 54 deletions

9
mdbx.h
View File

@@ -4232,6 +4232,15 @@ typedef int MDBX_pgvisitor_func(
/** \brief B-tree traversal function. */
LIBMDBX_API int mdbx_env_pgwalk(MDBX_txn *txn, MDBX_pgvisitor_func *visitor,
void *ctx, bool dont_check_keys_ordering);
/** \brief Open an environment instance using specific meta-page
* for checking and recovery.
*
* This function mostly of internal API for `mdbx_chk` utility. */
LIBMDBX_API int mdbx_env_open_for_recovery(MDBX_env *env, const char *pathname,
unsigned target_meta,
bool writeable);
/** @} B-tree Traversal */
/**** Attribute support functions for Nexenta