From 4f2bb3bfdcb5b2fa3d75b85c8a09d4189df7dfc2 Thu, 19 Jan 2012 10:09:39 +0100 From: Stevo Slavic Date: Thu, 19 Jan 2012 10:07:26 +0100 Subject: [PATCH] Fixes health check retrying after failover - as before change health check will occur after failover but it won't display retrying max retries + 1 th attempt, instead it will print that health check is starting diff --git a/main.c b/main.c index 77d55f4..6b4b526 100644 --- a/main.c +++ b/main.c @@ -714,12 +714,14 @@ Req_info->kind = NODE_DOWN_REQUEST; Req_info->node_id[0] = sts; failover(); + retrycnt = 0; + retrying = false; /* need to distribute this info to children */ } } /* - * Not parallel query mode case + * Parallel query mode case */ else { @@ -730,7 +732,6 @@ Req_info->kind = NODE_DOWN_REQUEST; Req_info->node_id[0] = sts; failover(); - retrycnt = 0; } else {