mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #15243 from ClickHouse/tavplubix-patch-1
Try fix race on Context::settings
This commit is contained in:
commit
ffc0499952
@ -968,6 +968,7 @@ StoragePtr Context::getViewSource()
|
|||||||
|
|
||||||
Settings Context::getSettings() const
|
Settings Context::getSettings() const
|
||||||
{
|
{
|
||||||
|
auto lock = getLock();
|
||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ QueryStatusInfo QueryStatus::getInfo(bool get_thread_list, bool get_profile_even
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (get_settings && query_context)
|
if (get_settings && query_context)
|
||||||
res.query_settings = std::make_shared<Settings>(query_context->getSettingsRef());
|
res.query_settings = std::make_shared<Settings>(query_context->getSettings());
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user