mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fixed potential exception due to stale profile UUID
`SettingsProfilesInfo::profiles` is not updated in bg if any of the profiles assigned to the user change, but `SettingsProfilesInfo::profiles_with_implicit` is.
Update of #42641
kudos @tavplubix 3d0c07ac5b (r1406196201)
This commit is contained in:
parent
4abb13c795
commit
174607c6bf
@ -66,7 +66,7 @@ Strings SettingsProfilesInfo::getProfileNames() const
|
||||
{
|
||||
Strings result;
|
||||
result.reserve(profiles.size());
|
||||
for (const auto & profile_id : profiles)
|
||||
for (const auto & profile_id : profiles_with_implicit)
|
||||
{
|
||||
const auto p = names_of_profiles.find(profile_id);
|
||||
if (p != names_of_profiles.end())
|
||||
|
Loading…
Reference in New Issue
Block a user