mdbx: counting large/overflow dirty pages (unused for now).

This is a basis for [Large/Overflow pages accounting for dirty-room](https://web.archive.org/web/20220414235959/https://github.com/erthink/libmdbx/issues/192).
This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-08-19 22:23:55 +03:00
parent 4cef1c2376
commit b759dfafd7
2 changed files with 35 additions and 14 deletions

View File

@@ -868,6 +868,7 @@ typedef struct MDBX_dp {
typedef struct MDBX_dpl {
unsigned sorted;
unsigned length;
unsigned pages_including_loose; /* number of pages, but not an entries. */
unsigned detent; /* allocated size excluding the MDBX_DPL_RESERVE_GAP */
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
(!defined(__cplusplus) && defined(_MSC_VER))