mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-19 22:39:04 +08:00
mdbx: revert/drop MDBX_DBG_NOFALLOC_INCORE
and introduce osal_fsetsize()
.
This fixes regression after the 2a7f460345
as when
a DXB file remains longer than necessary on Mac or Linux when building without `_GNU_SOURCE`.
This commit is contained in:
6
mdbx.h
6
mdbx.h
@@ -929,12 +929,8 @@ typedef enum MDBX_debug_flags {
|
||||
* \note Nonetheless a new write transactions will use and store the last signature regardless this flag */
|
||||
MDBX_DBG_DONT_UPGRADE = 64,
|
||||
|
||||
/** Disables the use of fallocate() for an in-core database(s) to avoid sporadic test failures
|
||||
* due to lack of space in tmpfs and/or free memory. */
|
||||
MDBX_DBG_NOFALLOC_INCORE = 128,
|
||||
|
||||
#ifdef ENABLE_UBSAN
|
||||
MDBX_DBG_MAX = ((unsigned)MDBX_LOG_MAX) << 16 | 255 /* avoid UBSAN false-positive trap by a tests */,
|
||||
MDBX_DBG_MAX = ((unsigned)MDBX_LOG_MAX) << 16 | 127 /* avoid UBSAN false-positive trap by a tests */,
|
||||
#endif /* ENABLE_UBSAN */
|
||||
|
||||
/** for mdbx_setup_debug() only: Don't change current settings */
|
||||
|
Reference in New Issue
Block a user