mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-04 17:19:53 +08:00 
			
		
		
		
	mdbx:  increase the MDBX_READERS_LIMIT to 32767.
				
					
				
			Fixes https://github.com/erthink/libmdbx/issues/219.
This commit is contained in:
		@@ -818,15 +818,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
 | 
			
		||||
 | 
			
		||||
/*----------------------------------------------------------------------------*/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user