mdbx: add MDBX_DBG_NOFALLOC_INCORE.

It is a workaround to sporadic test failures due to lack of space in tmpfs and/or free memory.
This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-10-09 21:39:07 +03:00
parent ed2cb62f39
commit ee6a045f17
6 changed files with 24 additions and 7 deletions

View File

@@ -522,6 +522,10 @@ MDBX_INTERNAL void munlock_after(const MDBX_env *env, const pgno_t aligned_pgno,
MDBX_INTERNAL void munlock_all(const MDBX_env *env);
static inline bool fallocate_disabled(const MDBX_env *env) {
return env->incore && (globals.runtime_flags & MDBX_DBG_NOFALLOC_INCORE) != 0;
}
/*----------------------------------------------------------------------------*/
/* Cache coherence and mmap invalidation */
#ifndef MDBX_CPU_WRITEBACK_INCOHERENT