mdbx: add mdbx_env_info2(txn) and mdbx_env_stat2(txn).

Change-Id: Ifd128185a084c9dc61da140eeeaaf4b6022d3537
This commit is contained in:
Leonid Yuriev
2019-08-11 23:22:51 +03:00
parent d6a2f98ef5
commit 17407c9ecc
2 changed files with 82 additions and 29 deletions

4
mdbx.h
View File

@@ -735,6 +735,8 @@ LIBMDBX_API int mdbx_env_copy2fd(MDBX_env *env, mdbx_filehandle_t fd,
* [out] stat The address of an MDBX_stat structure where the statistics
* will be copied */
LIBMDBX_API int mdbx_env_stat(MDBX_env *env, MDBX_stat *stat, size_t bytes);
LIBMDBX_API int mdbx_env_stat2(const MDBX_env *env, const MDBX_txn *txn,
MDBX_stat *stat, size_t bytes);
/* Return information about the MDBX environment.
*
@@ -742,6 +744,8 @@ LIBMDBX_API int mdbx_env_stat(MDBX_env *env, MDBX_stat *stat, size_t bytes);
* [out] stat The address of an MDBX_envinfo structure
* where the information will be copied */
LIBMDBX_API int mdbx_env_info(MDBX_env *env, MDBX_envinfo *info, size_t bytes);
LIBMDBX_API int mdbx_env_info2(const MDBX_env *env, const MDBX_txn *txn,
MDBX_envinfo *info, size_t bytes);
/* Flush the data buffers to disk.
*