提交 4818bc93 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved recovery after a power failure (to be tested).

上级 430e6959
...@@ -661,6 +661,7 @@ public class PageStore implements CacheWriter { ...@@ -661,6 +661,7 @@ public class PageStore implements CacheWriter {
} }
private void writeVariableHeader() { private void writeVariableHeader() {
file.sync();
Data page = createData(); Data page = createData();
page.writeInt(0); page.writeInt(0);
page.writeLong(getWriteCountTotal()); page.writeLong(getWriteCountTotal());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论