Cluster: add clean-logs command to create-cluster script.

This commit is contained in:
antirez
2017-04-14 10:35:55 +02:00
parent 8f7bf2841a
commit 6878a3fedd
2 changed files with 9 additions and 1 deletions

View File

@ -1363,8 +1363,9 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) {
clusterNodeFailureReportsCount(node) == 0)
{
uint32_t pongtime = ntohl(g->pong_received);
if (pongtime > node->pong_received)
if (pongtime > node->pong_received) {
node->pong_received = pongtime;
}
}
/* If we already know this node, but it is not reachable, and