Finalize fist version in column family

main
Igor Canadi 11 years ago
parent e25819a185
commit 69aa6ecb26
  1. 6
      db/version_set.cc

@ -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;

Loading…
Cancel
Save