Skip unecessary check for pong recieved (#8585)

This commit is contained in:
Madelyn Olson 2021-03-24 19:37:38 -07:00 committed by GitHub
parent 7de6451818
commit 98d2e0017d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3630,7 +3630,6 @@ void clusterCron(void) {
now - node->link->ctime >
server.cluster_node_timeout && /* was not already reconnected */
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 */
ping_delay > server.cluster_node_timeout/2 &&
/* and in such interval we are not seeing any traffic at all. */