提交 cb59d337 authored 作者: christian.peter.io's avatar christian.peter.io

Fixed NullPointerException in Database.checkpoint()

上级 33701498
......@@ -25,6 +25,7 @@ Change Log
Previously, an exception was thrown (unlike other databases) if it was not the escape character, '_' or '%'.
If the escape character appears at the end of the pattern, the result is it is ignored (like PostgreSQL and MS SQL Server).
</li><li>The reserve heap memory is no longer used.
</li><li>Fixed NullPointerException in Database.checkpoint().
</li></ul>
<h2>Version 1.2.125 (2009-12-06)</h2>
......
......@@ -2458,7 +2458,10 @@ public class Database implements DataHandler {
if (pageStore != null) {
pageStore.checkpoint();
}
getLog().checkpoint();
LogSystem log = getLog();
if (log != null) {
log.checkpoint();
}
}
getTempFileDeleter().deleteUnused();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论