提交 5c164418 authored 作者: andrei's avatar andrei

move comments along with the statement

上级 26984fbb
......@@ -662,8 +662,6 @@ public final class MVStore {
}
setLastChunk(newest);
loadChunkMeta();
// read all chunk headers and footers within the retention time,
// to detect unwritten data after a power failure
// build the free space list
fileStore.clear();
for (Chunk c : chunks.values()) {
......@@ -677,6 +675,8 @@ public final class MVStore {
}
assert fileStore.getFileLengthInUse() == measureFileLengthInUse() :
fileStore.getFileLengthInUse() + " != " + measureFileLengthInUse();
// read all chunk headers and footers within the retention time,
// to detect unwritten data after a power failure
verifyLastChunks();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论