提交 788bc07f authored 作者: Thomas Mueller's avatar Thomas Mueller

Page store: compact the database file when closing (currently always completely,…

Page store: compact the database file when closing (currently always completely, which may be slow).
上级 ded7361f
...@@ -1236,10 +1236,11 @@ public class Database implements DataHandler { ...@@ -1236,10 +1236,11 @@ public class Database implements DataHandler {
if (flush) { if (flush) {
try { try {
pageStore.checkpoint(); pageStore.checkpoint();
if (!readOnly) {
pageStore.trim(); pageStore.trim();
}
} catch (Throwable e) { } catch (Throwable e) {
int test; // TODO don't ignore exceptions
// e.printStackTrace(System.out);
traceSystem.getTrace(Trace.DATABASE).error("close", e); traceSystem.getTrace(Trace.DATABASE).error("close", e);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论