mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 01:14:23 +00:00
consul: Reap left members ignoring state. Fixes #371
This commit is contained in:
parent
93b209db50
commit
e39d2ee675
@ -197,7 +197,7 @@ func (s *Server) reconcile() (err error) {
|
|||||||
// a "reap" event to cause the node to be cleaned up.
|
// a "reap" event to cause the node to be cleaned up.
|
||||||
func (s *Server) reconcileReaped(known map[string]struct{}) error {
|
func (s *Server) reconcileReaped(known map[string]struct{}) error {
|
||||||
state := s.fsm.State()
|
state := s.fsm.State()
|
||||||
_, critical := state.ChecksInState(structs.HealthCritical)
|
_, critical := state.ChecksInState(structs.HealthAny)
|
||||||
for _, check := range critical {
|
for _, check := range critical {
|
||||||
// Ignore any non serf checks
|
// Ignore any non serf checks
|
||||||
if check.CheckID != SerfCheckID {
|
if check.CheckID != SerfCheckID {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user