mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:04:12 +08:00
mdbx: set MDBX_MIN_PAGESIZE to 256 (useful for testing).
Change-Id: Ie7f0b68ef7b21bb2f02267752555e2d0e853fcbe
This commit is contained in:
parent
582fdd7ed2
commit
55395820e3
2
mdbx.h
2
mdbx.h
@ -2040,7 +2040,7 @@ LIBMDBX_API int mdbx_is_readahead_reasonable(size_t volume,
|
||||
intptr_t redundancy);
|
||||
|
||||
/* The minimal database page size in bytes. */
|
||||
#define MDBX_MIN_PAGESIZE 512
|
||||
#define MDBX_MIN_PAGESIZE 256
|
||||
__inline intptr_t mdbx_limits_pgsize_min(void) { return MDBX_MIN_PAGESIZE; }
|
||||
|
||||
/* The maximal database page size in bytes. */
|
||||
|
@ -659,8 +659,8 @@ typedef struct MDBX_lockinfo {
|
||||
* demand-pager to read our data and page it out when memory
|
||||
* pressure from other processes is high. So until OSs have
|
||||
* actual paging support for Huge pages, they're not viable. */
|
||||
#define MAX_PAGESIZE 0x10000
|
||||
#define MIN_PAGESIZE 256
|
||||
#define MAX_PAGESIZE MDBX_MAX_PAGESIZE
|
||||
#define MIN_PAGESIZE MDBX_MIN_PAGESIZE
|
||||
|
||||
#define MIN_MAPSIZE (MIN_PAGESIZE * MIN_PAGENO)
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
|
Loading…
x
Reference in New Issue
Block a user