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