Skip to content

Commit

Permalink
Add missing IsActive function in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanji committed Nov 10, 2017
1 parent 7a3a84e commit d51731e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,14 @@ func (cluster *Cluster) IsMasterFailed() bool {
}
}

func (cluster *Cluster) IsActive() bool {
if cluster.runStatus == "A" {
return true
} else {
return false
}
}

func (cluster *Cluster) SetFailRestartUnsafe(check bool) {
cluster.conf.FailRestartUnsafe = check
}
Expand Down

0 comments on commit d51731e

Please sign in to comment.