We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa78500 commit 668049bCopy full SHA for 668049b
1 file changed
mdbx/mdbx.c
@@ -2579,15 +2579,13 @@ typedef struct MDBX_lockinfo {
2579
2580
#if MDBX_WORDBITS >= 64
2581
#define MAX_MAPSIZE MAX_MAPSIZE64
2582
-#define MDBX_READERS_LIMIT \
2583
- ((MAX_PAGESIZE - sizeof(MDBX_lockinfo)) / sizeof(MDBX_reader))
2584
#define MDBX_PGL_LIMIT ((size_t)MAX_PAGENO)
2585
#else
2586
-#define MDBX_READERS_LIMIT 1024
2587
#define MAX_MAPSIZE MAX_MAPSIZE32
2588
#define MDBX_PGL_LIMIT (MAX_MAPSIZE32 / MIN_PAGESIZE)
2589
#endif /* MDBX_WORDBITS */
2590
+#define MDBX_READERS_LIMIT 32767
2591
#define MDBX_RADIXSORT_THRESHOLD 333
2592
2593
/*----------------------------------------------------------------------------*/
0 commit comments