File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -429,9 +429,10 @@ public AlreadyOpenException() {
429429 */
430430 public static final class Builder <T > {
431431
432+ static final int MAX_READERS_DEFAULT = 126 ;
432433 private long mapSize = 1_024 * 1_024 ;
433434 private int maxDbs = 1 ;
434- private int maxReaders = 126 ;
435+ private int maxReaders = MAX_READERS_DEFAULT ;
435436 private boolean opened ;
436437 private final BufferProxy <T > proxy ;
437438
Original file line number Diff line number Diff line change @@ -333,6 +333,8 @@ public void stats() throws IOException {
333333 public void testDefaultOpen () throws IOException {
334334 final File path = tmp .newFolder ();
335335 try (Env <ByteBuffer > env = open (path , 10 )) {
336+ final EnvInfo info = env .info ();
337+ assertThat (info .maxReaders , is (MAX_READERS_DEFAULT ));
336338 final Dbi <ByteBuffer > db = env .openDbi ("test" , MDB_CREATE );
337339 db .put (allocateDirect (1 ), allocateDirect (1 ));
338340 }
You can’t perform that action at this time.
0 commit comments