提交 2f5474c0 authored 作者: Thomas Mueller's avatar Thomas Mueller

Page store: the recover tool sometimes generated a script file that contained duplicate data.

上级 e8f918a1
...@@ -110,7 +110,7 @@ public class PageFreeList extends Page { ...@@ -110,7 +110,7 @@ public class PageFreeList extends Page {
int getLastUsed() { int getLastUsed() {
int last = used.getLastSetBit(); int last = used.getLastSetBit();
return last == -1 ? -1 : last + getPos(); return last == 0 ? -1 : last + getPos();
} }
/** /**
......
...@@ -827,7 +827,6 @@ public class PageLog { ...@@ -827,7 +827,6 @@ public class PageLog {
if (writeBuffer.length() == 0) { if (writeBuffer.length() == 0) {
return writeBuffer; return writeBuffer;
} }
//new Error("recurse").printStackTrace();
return store.createData(); return store.createData();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论