Skip to content

Commit

Permalink
fix: upgrades_sentinel (OpenAtomFoundation#1949)
Browse files Browse the repository at this point in the history
* upgrades_sentine
  • Loading branch information
Mixficsol committed Sep 7, 2023
1 parent f70d97d commit 6943aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codis/pkg/topom/topom_sentinel.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func (s *Topom) CheckAndSwitchSlavesAndMasters(filter func(index int, g *models.
if g.Servers[0].ReCallTimes >= s.Config().SentinelMasterDeadCheckTimes {
// Mark enters objective offline state
g.Servers[0].State = models.GroupServerStateOffline
g.Servers[0].ReplicaGroup = false
}
// Start the election master node
if g.Servers[0].State == models.GroupServerStateOffline {
Expand Down

0 comments on commit 6943aa3

Please sign in to comment.