mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 03:00:49 +00:00
cluster.cpp file formatted
This commit is contained in:
parent
f0f870b27f
commit
2e433b6459
@ -477,11 +477,7 @@ Cluster::Cluster(const Settings & settings, const Cluster & from) : shards_info{
|
||||
{
|
||||
ShardInfo info;
|
||||
Address address = replicas[replica_index];
|
||||
auto position = find_if(hosts.begin(), hosts.end(),
|
||||
[=](auto item) {
|
||||
return std::get<0>(item) == address.host_name &&
|
||||
std::get<1>(item) == address.port;
|
||||
});
|
||||
auto position = find_if(hosts.begin(), hosts.end(), [=](auto item) {return std::get<0>(item) == address.host_name && std::get<1>(item) == address.port;});
|
||||
if (position == hosts.end())
|
||||
{
|
||||
if (address.is_local)
|
||||
|
Loading…
Reference in New Issue
Block a user