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

move comments along with the statement

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