提交 d715cba0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Server-less multi-connection mode: more bugs are fixed.

上级 9b8db89c
......@@ -1087,7 +1087,9 @@ public class Database implements DataHandler {
// another connection may have written something - don't write
try {
// make sure the log doesn't try to write
log.setReadOnly(true);
if (log != null) {
log.setReadOnly(true);
}
closeOpenFilesAndUnlock(false);
} catch (SQLException e) {
// ignore
......@@ -2284,7 +2286,7 @@ public class Database implements DataHandler {
* the .lock.db file.
*/
public void checkpointIfRequired() throws SQLException {
if (fileLockMethod != FileLock.LOCK_SERIALIZED || readOnly || !reconnectChangePending) {
if (fileLockMethod != FileLock.LOCK_SERIALIZED || readOnly || !reconnectChangePending || closing) {
return;
}
long now = System.currentTimeMillis();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论