Merge pull request #53829 from ClickHouse/fix-cluster-tryGetAreReplicasActive

Fix typo in cluster name.
This commit is contained in:
Nikolai Kochetov 2023-08-25 14:34:49 +02:00 committed by GitHub
commit 86d7e7cc73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ ClusterPtr DatabaseReplicated::getClusterImpl() const
std::vector<UInt8> DatabaseReplicated::tryGetAreReplicasActive(const ClusterPtr & cluster_) const
{
Strings paths;
const auto & addresses_with_failover = cluster->getShardsAddresses();
const auto & addresses_with_failover = cluster_->getShardsAddresses();
const auto & shards_info = cluster_->getShardsInfo();
for (size_t shard_index = 0; shard_index < shards_info.size(); ++shard_index)
{