mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Simplify lock
This commit is contained in:
parent
69015f292e
commit
f2a8c18c1f
@ -1645,7 +1645,7 @@ void MergeTreeData::alterSettings(
|
||||
const Context & context,
|
||||
TableStructureWriteLockHolder & table_lock_holder)
|
||||
{
|
||||
std::unique_lock lock(settings_mutex);
|
||||
std::lock_guard lock(settings_mutex);
|
||||
MutableMergeTreeSettingsPtr settings = std::move(*guarded_settings.getPtr()).mutate();
|
||||
settings->updateFromChanges(new_changes);
|
||||
IStorage::alterSettings(new_changes, current_database_name, current_table_name, context, table_lock_holder);
|
||||
|
Loading…
Reference in New Issue
Block a user