mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-25 01:08:56 +08:00
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:
@@ -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) &
|
||||
|
||||
Reference in New Issue
Block a user