提交 698487c3 authored 作者: Thomas Mueller's avatar Thomas Mueller

Feature flags for version 1.4

上级 cf5f5318
......@@ -100,7 +100,7 @@ public class Constants {
/**
* The minor version of this database.
*/
public static final int VERSION_MINOR = 3;
public static final int VERSION_MINOR = 4;
/**
* The lock mode that means no locking is used at all.
......
......@@ -235,7 +235,7 @@ public class Database implements DataHandler {
this.mode = Mode.getInstance(modeName);
}
this.multiVersion =
ci.getProperty("MVCC", Constants.VERSION_MINOR >= 4);
ci.getProperty("MVCC", dbSettings.mvStore);
this.logMode =
ci.getProperty("LOG", PageStore.LOG_MODE_SYNC);
this.javaObjectSerializerName =
......@@ -2245,7 +2245,7 @@ public class Database implements DataHandler {
public void setMultiThreaded(boolean multiThreaded) {
if (multiThreaded && this.multiThreaded != multiThreaded) {
if (multiVersion) {
if (multiVersion && mvStore == null) {
// currently the combination of MVCC and MULTI_THREADED is not
// supported
throw DbException.get(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论