mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 22:09:03 +08:00
mdbx: support for txnid of the last modification for sub-dbs/kv-spaces.
Change-Id: Ifb6684df57608cda88aa9134b275f442358ff46d
This commit is contained in:
3
mdbx.h
3
mdbx.h
@@ -1571,12 +1571,13 @@ LIBMDBX_API int mdbx_env_copy2fd(MDBX_env *env, mdbx_filehandle_t fd,
|
||||
/* Statistics for a database in the environment */
|
||||
typedef struct MDBX_stat {
|
||||
uint32_t ms_psize; /* Size of a database page.
|
||||
* This is currently the same for all databases. */
|
||||
* This is the same for all databases. */
|
||||
uint32_t ms_depth; /* Depth (height) of the B-tree */
|
||||
uint64_t ms_branch_pages; /* Number of internal (non-leaf) pages */
|
||||
uint64_t ms_leaf_pages; /* Number of leaf pages */
|
||||
uint64_t ms_overflow_pages; /* Number of overflow pages */
|
||||
uint64_t ms_entries; /* Number of data items */
|
||||
uint64_t ms_mod_txnid; /* Transaction ID of commited last modification */
|
||||
} MDBX_stat;
|
||||
|
||||
/* Return statistics about the MDBX environment.
|
||||
|
Reference in New Issue
Block a user