Skip to content

Commit d51731e

Browse files
committed
Add missing IsActive function in previous commit
1 parent 7a3a84e commit d51731e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cluster/cluster.go

+8
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,14 @@ func (cluster *Cluster) IsMasterFailed() bool {
445445
}
446446
}
447447

448+
func (cluster *Cluster) IsActive() bool {
449+
if cluster.runStatus == "A" {
450+
return true
451+
} else {
452+
return false
453+
}
454+
}
455+
448456
func (cluster *Cluster) SetFailRestartUnsafe(check bool) {
449457
cluster.conf.FailRestartUnsafe = check
450458
}

0 commit comments

Comments
 (0)