SetLogNumber in CreateColumnFamily

main
Igor Canadi 11 years ago
parent b41a3bc4da
commit 206b38f31c
  1. 1
      db/db_impl.cc

@ -3063,6 +3063,7 @@ Status DBImpl::CreateColumnFamily(const ColumnFamilyOptions& options,
edit.AddColumnFamily(column_family_name);
uint32_t new_id = versions_->GetColumnFamilySet()->GetNextColumnFamilyID();
edit.SetColumnFamily(new_id);
edit.SetLogNumber(logfile_number_);
auto cfd = versions_->CreateColumnFamily(options, &edit);
assert(cfd != nullptr);
edit.SetComparatorName(cfd->internal_comparator().user_comparator()->Name());

Loading…
Cancel
Save