mdbx: internal build option for debuging dirtyroom reservation and spilling.

Related to https://github.com/erthink/libmdbx/issues/186

Change-Id: Ia315ae2cae5f5b5b82891843de22487db0139df3
This commit is contained in:
Leonid Yuriev
2021-04-28 18:03:35 +03:00
parent 39230c9a22
commit aa5a39160a
2 changed files with 41 additions and 2 deletions

View File

@@ -1226,6 +1226,13 @@ struct MDBX_env {
pgno_t me_poison_edge;
#endif /* MDBX_USE_VALGRIND || __SANITIZE_ADDRESS__ */
#ifndef MDBX_DEBUG_SPILLING
#define MDBX_DEBUG_SPILLING 0
#endif
#if MDBX_DEBUG_SPILLING == 2
unsigned debug_dirtied_est, debug_dirtied_act;
#endif /* MDBX_DEBUG_SPILLING */
/* ------------------------------------------------- stub for lck-less mode */
alignas(MDBX_CACHELINE_SIZE) uint64_t
me_lckless_stub[((sizeof(MDBX_lockinfo) + MDBX_CACHELINE_SIZE - 1) &