Merge pull request #55587 from azat/fix-replica-group

Fix replica groups for Replicated database engine
This commit is contained in:
Alexander Tokmakov 2023-10-13 13:07:28 +02:00 committed by GitHub
commit ebfad5c8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ std::vector<UInt8> DatabaseReplicated::tryGetAreReplicasActive(const ClusterPtr
{
for (const auto & replica : addresses_with_failover[shard_index])
{
String full_name = getFullReplicaName(replica.database_shard_name, replica.database_replica_name, replica.database_replica_name);
String full_name = getFullReplicaName(replica.database_shard_name, replica.database_replica_name, replica.database_replica_group_name);
paths.emplace_back(fs::path(zookeeper_path) / "replicas" / full_name / "active");
}
}