mirror of
https://github.com/isar/libmdbx.git
synced 2025-06-05 17:12:42 +08:00
mdbx: increase the MDBX_READERS_LIMIT
to 32767
.
Fixes https://github.com/erthink/libmdbx/issues/219.
This commit is contained in:
parent
678a80dd19
commit
4de2dcebb5
@ -818,15 +818,13 @@ typedef struct MDBX_lockinfo {
|
|||||||
|
|
||||||
#if MDBX_WORDBITS >= 64
|
#if MDBX_WORDBITS >= 64
|
||||||
#define MAX_MAPSIZE MAX_MAPSIZE64
|
#define MAX_MAPSIZE MAX_MAPSIZE64
|
||||||
#define MDBX_READERS_LIMIT \
|
|
||||||
((MAX_PAGESIZE - sizeof(MDBX_lockinfo)) / sizeof(MDBX_reader))
|
|
||||||
#define MDBX_PGL_LIMIT ((size_t)MAX_PAGENO)
|
#define MDBX_PGL_LIMIT ((size_t)MAX_PAGENO)
|
||||||
#else
|
#else
|
||||||
#define MDBX_READERS_LIMIT 1024
|
|
||||||
#define MAX_MAPSIZE MAX_MAPSIZE32
|
#define MAX_MAPSIZE MAX_MAPSIZE32
|
||||||
#define MDBX_PGL_LIMIT (MAX_MAPSIZE32 / MIN_PAGESIZE)
|
#define MDBX_PGL_LIMIT (MAX_MAPSIZE32 / MIN_PAGESIZE)
|
||||||
#endif /* MDBX_WORDBITS */
|
#endif /* MDBX_WORDBITS */
|
||||||
|
|
||||||
|
#define MDBX_READERS_LIMIT 32767
|
||||||
#define MDBX_RADIXSORT_THRESHOLD 333
|
#define MDBX_RADIXSORT_THRESHOLD 333
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user