Finalize version in dumpmanifest

This commit is contained in:
Igor Canadi 2014-03-18 09:45:52 -07:00
parent d63ae5cb59
commit bcea9c1296
1 changed files with 5 additions and 0 deletions

View File

@ -2014,6 +2014,7 @@ Status VersionSet::Recover(
std::vector<uint64_t> size_being_compacted(v->NumberLevels() - 1);
cfd->compaction_picker()->SizeBeingCompacted(size_being_compacted);
v->Finalize(size_being_compacted);
v->UpdateFilesBySize();
AppendVersion(cfd, v);
}
@ -2343,6 +2344,10 @@ Status VersionSet::DumpManifest(Options& options, std::string& dscname,
Version* v = new Version(cfd, this, current_version_number_++);
builder->SaveTo(v);
std::vector<uint64_t> size_being_compacted(v->NumberLevels() - 1);
cfd->compaction_picker()->SizeBeingCompacted(size_being_compacted);
v->Finalize(size_being_compacted);
v->UpdateFilesBySize();
delete builder;
printf("--------------- Column family \"%s\" (ID %u) --------------\n",