mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10: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;
|
ShardInfo info;
|
||||||
Address address = replicas[replica_index];
|
Address address = replicas[replica_index];
|
||||||
auto position = find_if(hosts.begin(), hosts.end(),
|
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 item) {
|
|
||||||
return std::get<0>(item) == address.host_name &&
|
|
||||||
std::get<1>(item) == address.port;
|
|
||||||
});
|
|
||||||
if (position == hosts.end())
|
if (position == hosts.end())
|
||||||
{
|
{
|
||||||
if (address.is_local)
|
if (address.is_local)
|
||||||
|
Loading…
Reference in New Issue
Block a user