提交 3ec60bda authored 作者: andrei's avatar andrei

oops, i did it again

上级 66898fef
...@@ -1516,7 +1516,6 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -1516,7 +1516,6 @@ public class MVMap<K, V> extends AbstractMap<K, V>
} }
oldRootReference = rootReference; oldRootReference = rootReference;
++attempt; ++attempt;
Thread.yield();
CursorPos pos = traverseDown(rootReference.root, key); CursorPos pos = traverseDown(rootReference.root, key);
Page p = pos.page; Page p = pos.page;
int index = pos.index; int index = pos.index;
......
...@@ -1420,7 +1420,9 @@ public final class MVStore { ...@@ -1420,7 +1420,9 @@ public final class MVStore {
} }
public void visit(long pos) { public void visit(long pos) {
assert DataUtils.isPageSaved(pos); if (!DataUtils.isPageSaved(pos)) {
return;
}
register(DataUtils.getPageChunkId(pos)); register(DataUtils.getPageChunkId(pos));
if (DataUtils.getPageType(pos) != DataUtils.PAGE_TYPE_LEAF) { if (DataUtils.getPageType(pos) != DataUtils.PAGE_TYPE_LEAF) {
int chunkIds[]; int chunkIds[];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论