mirror of
https://github.com/isar/libmdbx.git
synced 2025-09-16 03:32:19 +08:00
mdbx: add mdbx_env_turn_for_recovery().
Change-Id: Ic02a5adf9ad398ae5b499e8808157e41ec42457e
This commit is contained in:
11
mdbx.h
11
mdbx.h
@@ -4236,11 +4236,20 @@ LIBMDBX_API int mdbx_env_pgwalk(MDBX_txn *txn, MDBX_pgvisitor_func *visitor,
|
||||
/** \brief Open an environment instance using specific meta-page
|
||||
* for checking and recovery.
|
||||
*
|
||||
* This function mostly of internal API for `mdbx_chk` utility. */
|
||||
* This function mostly of internal API for `mdbx_chk` utility and subject to
|
||||
* change at any time. Do not use this function to avoid shooting your own
|
||||
* leg(s). */
|
||||
LIBMDBX_API int mdbx_env_open_for_recovery(MDBX_env *env, const char *pathname,
|
||||
unsigned target_meta,
|
||||
bool writeable);
|
||||
|
||||
/** \brief Turn database to the specified meta-page.
|
||||
*
|
||||
* This function mostly of internal API for `mdbx_chk` utility and subject to
|
||||
* change at any time. Do not use this function to avoid shooting your own
|
||||
* leg(s). */
|
||||
LIBMDBX_API int mdbx_env_turn_for_recovery(MDBX_env *env, unsigned target_meta);
|
||||
|
||||
/** @} B-tree Traversal */
|
||||
|
||||
/**** Attribute support functions for Nexenta
|
||||
|
Reference in New Issue
Block a user