mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
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);
|
||||
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…
Reference in a new issue