SetLogNumber in CreateColumnFamily
This commit is contained in:
parent
b41a3bc4da
commit
206b38f31c
@ -3063,6 +3063,7 @@ Status DBImpl::CreateColumnFamily(const ColumnFamilyOptions& options,
|
|||||||
edit.AddColumnFamily(column_family_name);
|
edit.AddColumnFamily(column_family_name);
|
||||||
uint32_t new_id = versions_->GetColumnFamilySet()->GetNextColumnFamilyID();
|
uint32_t new_id = versions_->GetColumnFamilySet()->GetNextColumnFamilyID();
|
||||||
edit.SetColumnFamily(new_id);
|
edit.SetColumnFamily(new_id);
|
||||||
|
edit.SetLogNumber(logfile_number_);
|
||||||
auto cfd = versions_->CreateColumnFamily(options, &edit);
|
auto cfd = versions_->CreateColumnFamily(options, &edit);
|
||||||
assert(cfd != nullptr);
|
assert(cfd != nullptr);
|
||||||
edit.SetComparatorName(cfd->internal_comparator().user_comparator()->Name());
|
edit.SetComparatorName(cfd->internal_comparator().user_comparator()->Name());
|
||||||
|
Loading…
Reference in New Issue
Block a user