Commit 8bcca06c authored by Madelyn Olson's avatar Madelyn Olson Committed by Oran Agra
Browse files

Skip unecessary check for pong recieved (#8585)


(cherry picked from commit 98d2e001)
parent aae2d6e3
...@@ -3627,7 +3627,6 @@ void clusterCron(void) { ...@@ -3627,7 +3627,6 @@ void clusterCron(void) {
now - node->link->ctime > now - node->link->ctime >
server.cluster_node_timeout && /* was not already reconnected */ server.cluster_node_timeout && /* was not already reconnected */
node->ping_sent && /* we already sent a ping */ node->ping_sent && /* we already sent a ping */
node->pong_received < node->ping_sent && /* still waiting pong */
/* and we are waiting for the pong more than timeout/2 */ /* and we are waiting for the pong more than timeout/2 */
ping_delay > server.cluster_node_timeout/2 && ping_delay > server.cluster_node_timeout/2 &&
/* and in such interval we are not seeing any traffic at all. */ /* and in such interval we are not seeing any traffic at all. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment