Skip to content

Commit

Permalink
Topology discovered did not afect a master for active-passiv
Browse files Browse the repository at this point in the history
  • Loading branch information
svaroqui committed Sep 26, 2024
1 parent 66db996 commit e3c3e73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/cluster_topo.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func (cluster *Cluster) TopologyDiscover(wcg *sync.WaitGroup) error {
if len(cluster.Servers) == 1 {
cluster.Topology = topoActivePassive
cluster.Conf.ActivePassive = true
for _, sv := range cluster.Servers {
cluster.master = sv
}
return nil
} else {
cluster.Conf.ActivePassive = false
Expand Down

0 comments on commit e3c3e73

Please sign in to comment.