mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-02 04:08:57 +08:00
mdbx: fix operation for unusual small/large system page size.
More for https://github.com/erthink/libmdbx/issues/157 Change-Id: I4f2ed54b50653d0375538b82c48590d1037cd93b
This commit is contained in:
@@ -628,7 +628,7 @@ typedef struct MDBX_lockinfo {
|
||||
#if MDBX_WORDBITS >= 64
|
||||
#define MAX_MAPSIZE MAX_MAPSIZE64
|
||||
#define MDBX_READERS_LIMIT \
|
||||
((65536 - sizeof(MDBX_lockinfo)) / sizeof(MDBX_reader))
|
||||
((MAX_PAGESIZE - sizeof(MDBX_lockinfo)) / sizeof(MDBX_reader))
|
||||
#define MDBX_PGL_LIMIT MAX_PAGENO
|
||||
#else
|
||||
#define MDBX_READERS_LIMIT 1024
|
||||
|
||||
Reference in New Issue
Block a user