Cluster: log the event when we clear the FAIL flag.

This commit is contained in:
antirez 2013-02-26 15:03:27 +01:00
parent 97ffcd351b
commit f288b07563

View File

@ -569,6 +569,9 @@ void clearNodeFailureIfNeeded(clusterNode *node) {
if (node->flags & REDIS_NODE_FAIL && !node->numslaves) {
node->flags &= ~REDIS_NODE_FAIL;
clusterUpdateState();
redisLog(REDIS_NOTICE,
"Clear FAIL state for node %.40s: is reachable and has no slaves.",
node->name);
}
}