提交 74717de4 authored 作者: andrei's avatar andrei

review comments from @grandinj

上级 eda9d524
...@@ -298,9 +298,15 @@ public final class MVStore { ...@@ -298,9 +298,15 @@ public final class MVStore {
fileStore = new FileStore(); fileStore = new FileStore();
} }
o = config.get("pageSplitSize"); o = config.get("pageSplitSize");
pageSplitSize = o != null ? (Integer) o : int pgSplitSize;
fileStore == null ? 48 : if (o != null) {
16 * 1024; pgSplitSize = (Integer) o;
} else if(fileStore != null) {
pgSplitSize = 16 * 1024;
} else {
pgSplitSize = 48; // number of keys per page in that case
}
pageSplitSize = pgSplitSize;
o = config.get("backgroundExceptionHandler"); o = config.get("backgroundExceptionHandler");
this.backgroundExceptionHandler = (UncaughtExceptionHandler) o; this.backgroundExceptionHandler = (UncaughtExceptionHandler) o;
meta = new MVMap<String, String>(StringDataType.INSTANCE, meta = new MVMap<String, String>(StringDataType.INSTANCE,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论