From: zhen wang <[email protected]>

This reverts commit 1e59feea933610b28fd4442243162ce35595cfee.
Above commit introduced a bug when muptiple ovn-northd instances work in HA
mode. If SB leader and active ovn-northd instance got killed by system power
outage, standby ovn-northd instance would never detect the failure.

Signed-off-by: zhen wang <[email protected]>
---
 northd/northd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/northd/northd.c b/northd/northd.c
index 688a6e4ef..b7e64470f 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -74,8 +74,8 @@ static bool use_ct_inv_match = true;
 
 /* Default probe interval for NB and SB DB connections. */
 #define DEFAULT_PROBE_INTERVAL_MSEC 5000
-static int northd_probe_interval_nb = 0;
-static int northd_probe_interval_sb = 0;
+static int northd_probe_interval_nb = DEFAULT_PROBE_INTERVAL_MSEC;
+static int northd_probe_interval_sb = DEFAULT_PROBE_INTERVAL_MSEC;
 #define MAX_OVN_TAGS 4096
 
 /* Pipeline stages. */
-- 
2.20.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to