mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Fix iteration in Context::getClusters
This commit is contained in:
parent
b1f0e0d62f
commit
b31f696aae
@ -3017,7 +3017,8 @@ std::map<String, ClusterPtr> Context::getClusters() const
|
||||
|
||||
if (shared->cluster_discovery)
|
||||
{
|
||||
for (const auto & [name, cluster] : shared->cluster_discovery->getClusters())
|
||||
const auto & cluster_discovery_map = shared->cluster_discovery->getClusters();
|
||||
for (const auto & [name, cluster] : cluster_discovery_map)
|
||||
clusters.emplace(name, cluster);
|
||||
}
|
||||
return clusters;
|
||||
|
Loading…
Reference in New Issue
Block a user