Skip to content

Commit

Permalink
set max reader to what is supposed to be the default value (126) see l…
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jun 13, 2018
1 parent 028d5a6 commit 7372366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/scienceminer/nerd/kb/db/KBDatabase.java
Expand Up @@ -47,6 +47,7 @@ public KBDatabase(KBEnvironment env, DatabaseType type) {
}
this.environment = Env.create()
.setMapSize(100L * 1024L * 1024L * 1024L)
.setMaxReaders(126)
.open(thePath, EnvFlags.MDB_NOTLS);

db = this.environment.openDbi(type.name(), DbiFlags.MDB_CREATE);
Expand Down Expand Up @@ -78,6 +79,7 @@ public KBDatabase(KBEnvironment env, DatabaseType type, String name) {
}
this.environment = Env.create()
.setMapSize(100L * 1024L * 1024L * 1024L)
.setMaxReaders(126)
.open(thePath);
db = this.environment.openDbi(this.name, DbiFlags.MDB_CREATE);
}
Expand Down
Expand Up @@ -72,6 +72,7 @@ public WikipediaDomainMap(String lang, String envPath) {
}
this.environment = Env.create()
.setMapSize(100L * 1024L * 1024L * 1024L)
.setMaxReaders(126)
.open(thePath, MDB_NOTLS);
db = this.environment.openDbi(database_name, DbiFlags.MDB_CREATE);
}
Expand Down

0 comments on commit 7372366

Please sign in to comment.