Finalize fist version in column family

This commit is contained in:
Igor Canadi 2014-03-18 14:23:47 -07:00
parent e25819a185
commit 69aa6ecb26
1 changed files with 5 additions and 1 deletions

View File

@ -2708,7 +2708,11 @@ ColumnFamilyData* VersionSet::CreateColumnFamily(
auto new_cfd = column_family_set_->CreateColumnFamily(
edit->column_family_name_, edit->column_family_, dummy_versions, options);
AppendVersion(new_cfd, new Version(new_cfd, this, current_version_number_++));
Version* v = new Version(new_cfd, this, current_version_number_++);
std::vector<uint64_t> size_being_compacted(options.num_levels - 1, 0);
v->Finalize(size_being_compacted);
AppendVersion(new_cfd, v);
new_cfd->CreateNewMemtable();
new_cfd->SetLogNumber(edit->log_number_);
return new_cfd;