提交 d75925f6 authored 作者: noelgrandin@gmail.com's avatar noelgrandin@gmail.com

improve error message

上级 8cd131df
......@@ -216,7 +216,7 @@ public class Database implements DataHandler {
readOnly = true;
}
if (dbSettings.mvStore && lockMethodName == null) {
if (autoServerMode) {
if (autoServerMode) {
fileLockMethod = FileLock.LOCK_FILE;
} else {
fileLockMethod = FileLock.LOCK_FS;
......@@ -615,7 +615,7 @@ public class Database implements DataHandler {
!persistent) {
throw DbException.getUnsupportedException(
"autoServerMode && (readOnly || fileLockMethod == NO" +
" || fileLockMethod == SERIALIZED || inMemory)");
" || fileLockMethod == SERIALIZED || fileLockMethod == FS || inMemory)");
}
}
String lockFileName = databaseName + Constants.SUFFIX_LOCK_FILE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论