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

Feature flags for version 1.4

上级 cf5f5318
...@@ -100,7 +100,7 @@ public class Constants { ...@@ -100,7 +100,7 @@ public class Constants {
/** /**
* The minor version of this database. * 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. * The lock mode that means no locking is used at all.
......
...@@ -235,7 +235,7 @@ public class Database implements DataHandler { ...@@ -235,7 +235,7 @@ public class Database implements DataHandler {
this.mode = Mode.getInstance(modeName); this.mode = Mode.getInstance(modeName);
} }
this.multiVersion = this.multiVersion =
ci.getProperty("MVCC", Constants.VERSION_MINOR >= 4); ci.getProperty("MVCC", dbSettings.mvStore);
this.logMode = this.logMode =
ci.getProperty("LOG", PageStore.LOG_MODE_SYNC); ci.getProperty("LOG", PageStore.LOG_MODE_SYNC);
this.javaObjectSerializerName = this.javaObjectSerializerName =
...@@ -2245,7 +2245,7 @@ public class Database implements DataHandler { ...@@ -2245,7 +2245,7 @@ public class Database implements DataHandler {
public void setMultiThreaded(boolean multiThreaded) { public void setMultiThreaded(boolean multiThreaded) {
if (multiThreaded && this.multiThreaded != multiThreaded) { if (multiThreaded && this.multiThreaded != multiThreaded) {
if (multiVersion) { if (multiVersion && mvStore == null) {
// currently the combination of MVCC and MULTI_THREADED is not // currently the combination of MVCC and MULTI_THREADED is not
// supported // supported
throw DbException.get( throw DbException.get(
......
...@@ -318,7 +318,7 @@ public class SysProperties { ...@@ -318,7 +318,7 @@ public class SysProperties {
* Limited support for the old-style Oracle outer join with "(+)". * Limited support for the old-style Oracle outer join with "(+)".
*/ */
public static final boolean OLD_STYLE_OUTER_JOIN = public static final boolean OLD_STYLE_OUTER_JOIN =
Utils.getProperty("h2.oldStyleOuterJoin", Utils.getProperty("h2.oldStyleOuterJoin",
Constants.VERSION_MINOR >= 4 ? false : true); Constants.VERSION_MINOR >= 4 ? false : true);
/** /**
...@@ -401,7 +401,7 @@ public class SysProperties { ...@@ -401,7 +401,7 @@ public class SysProperties {
* taken into account. * taken into account.
*/ */
public static final boolean STORE_LOCAL_TIME = public static final boolean STORE_LOCAL_TIME =
Utils.getProperty("h2.storeLocalTime", Utils.getProperty("h2.storeLocalTime",
Constants.VERSION_MINOR >= 4 ? true : false); Constants.VERSION_MINOR >= 4 ? true : false);
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论