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

Reminder to enhance compact algorithm

上级 2c428b44
...@@ -1288,7 +1288,14 @@ public class Database implements DataHandler { ...@@ -1288,7 +1288,14 @@ public class Database implements DataHandler {
if (!readOnly) { if (!readOnly) {
pageStore.compact(compactFully); pageStore.compact(compactFully);
} }
} catch (Throwable e) { } catch (SQLException e) {
if (e.getErrorCode() != ErrorCode.SIMULATED_POWER_OFF){
// e.printStackTrace();
// TODO don't ignore exceptions
}
traceSystem.getTrace(Trace.DATABASE).error("close", e);
} catch (Throwable e){
// e.printStackTrace();
// TODO don't ignore exceptions // TODO don't ignore exceptions
traceSystem.getTrace(Trace.DATABASE).error("close", e); traceSystem.getTrace(Trace.DATABASE).error("close", e);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论