Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyuankai committed Dec 7, 2023
1 parent 3881bdf commit beabc52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storages/StorageDistributed.cpp
Expand Up @@ -1425,8 +1425,8 @@ Cluster::Addresses StorageDistributed::parseAddresses(const std::string & name)

if (dirname.ends_with("_all_replicas"))
{
for (size_t replica_index = 1; replica_index <= replicas; ++replica_index)
addresses.push_back(replicas_addresses[replica_index - 1]);
for (const auto & replica_address : replicas_addresses)
addresses.push_back(replica_address);
continue;
}

Expand Down

0 comments on commit beabc52

Please sign in to comment.