Blame SOURCES/bz1678480-set-active-if-failed-checkers-empty.patch

9cfb40
From ebd51b5f4a26619a4dd0393a7e97e4ca1a122700 Mon Sep 17 00:00:00 2001
9cfb40
From: YAMAMOTO Masaya <pandax381@gmail.com>
9cfb40
Date: Tue, 11 Jul 2017 17:55:50 +0900
9cfb40
Subject: [PATCH 5/8] Set active if new failed_checkers is empty
9cfb40
9cfb40
---
9cfb40
 keepalived/check/ipwrapper.c | 3 +++
9cfb40
 1 file changed, 3 insertions(+)
9cfb40
9cfb40
diff --git a/keepalived/check/ipwrapper.c b/keepalived/check/ipwrapper.c
9cfb40
index 09d86f08..c9dce2b7 100644
9cfb40
--- a/keepalived/check/ipwrapper.c
9cfb40
+++ b/keepalived/check/ipwrapper.c
9cfb40
@@ -658,6 +658,9 @@ migrate_failed_checkers(real_server_t *old_rs, real_server_t *new_rs)
9cfb40
 			}
9cfb40
 		}
9cfb40
 	}
9cfb40
+
9cfb40
+	if (LIST_ISEMPTY(new_rs->failed_checkers))
9cfb40
+		SET_ALIVE(new_rs);
9cfb40
 end:
9cfb40
 	free_list(&l);
9cfb40
 }
9cfb40
-- 
9cfb40
2.20.1
9cfb40