Bugfix
This commit is contained in:
parent
e3536cfd01
commit
c9e9cb8a01
@ -105,9 +105,10 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
|||||||
|
|
||||||
int threadCap;
|
int threadCap;
|
||||||
if (databaseOptions.lowMemory()) {
|
if (databaseOptions.lowMemory()) {
|
||||||
threadCap = Math.max(8, Runtime.getRuntime().availableProcessors());
|
|
||||||
} else {
|
|
||||||
threadCap = Runtime.getRuntime().availableProcessors();
|
threadCap = Runtime.getRuntime().availableProcessors();
|
||||||
|
} else {
|
||||||
|
// 8 or more
|
||||||
|
threadCap = Math.max(8, Runtime.getRuntime().availableProcessors());
|
||||||
}
|
}
|
||||||
this.dbScheduler = Schedulers.newBoundedElastic(threadCap,
|
this.dbScheduler = Schedulers.newBoundedElastic(threadCap,
|
||||||
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
|
Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE,
|
||||||
|
Loading…
Reference in New Issue
Block a user