Skip to content

Commit

Permalink
increase the MDBX_READERS_LIMIT to 32767
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jul 14, 2021
1 parent 339745a commit 2b41dc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mdbx/mdbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,15 +2581,13 @@ typedef struct MDBX_lockinfo {

#if MDBX_WORDBITS >= 64
#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)
#else
#define MDBX_READERS_LIMIT 1024
#define MAX_MAPSIZE MAX_MAPSIZE32
#define MDBX_PGL_LIMIT (MAX_MAPSIZE32 / MIN_PAGESIZE)
#endif /* MDBX_WORDBITS */

#define MDBX_READERS_LIMIT 32767
#define MDBX_RADIXSORT_THRESHOLD 333

/*----------------------------------------------------------------------------*/
Expand Down

0 comments on commit 2b41dc1

Please sign in to comment.