Remove empty block

This commit is contained in:
alesapin 2019-08-13 15:03:42 +03:00
parent 5b85373c56
commit b00903330f

View File

@ -1644,12 +1644,11 @@ void MergeTreeData::alterSettings(
const Context & context, const Context & context,
TableStructureWriteLockHolder & table_lock_holder) TableStructureWriteLockHolder & table_lock_holder)
{ {
{ /// No additional locking required, because we took table_lock_holder
MutableMergeTreeSettingsPtr settings = std::move(*guarded_settings.getPtr()).mutate(); MutableMergeTreeSettingsPtr settings = std::move(*guarded_settings.getPtr()).mutate();
settings->updateFromChanges(new_changes); settings->updateFromChanges(new_changes);
IStorage::alterSettings(new_changes, current_database_name, current_table_name, context, table_lock_holder); IStorage::alterSettings(new_changes, current_database_name, current_table_name, context, table_lock_holder);
guarded_settings.setPtr(std::move(settings)); guarded_settings.setPtr(std::move(settings));
}
} }
bool MergeTreeData::hasSetting(const String & setting_name) const bool MergeTreeData::hasSetting(const String & setting_name) const