mdbx: set MDBX_MIN_PAGESIZE to 256 (useful for testing).

Change-Id: Ie7f0b68ef7b21bb2f02267752555e2d0e853fcbe
This commit is contained in:
Leonid Yuriev 2019-10-29 18:54:03 +03:00
parent 582fdd7ed2
commit 55395820e3
2 changed files with 3 additions and 3 deletions

2
mdbx.h
View File

@ -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. */

View File

@ -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)