update state when FAIL is cleared from a node
authorantirez <antirez@gmail.com>
Fri, 8 Apr 2011 12:19:52 +0000 (14:19 +0200)
committerantirez <antirez@gmail.com>
Fri, 8 Apr 2011 12:19:52 +0000 (14:19 +0200)
src/cluster.c

index e2b8204461d7a95cda0f0e4f6f1217c718ad275a..70c34aab884632c134ba587bcae6449e18e8aa79 100644 (file)
@@ -943,6 +943,7 @@ void clusterCron(void) {
                 node->flags &= ~REDIS_NODE_PFAIL;
             } else if (node->flags & REDIS_NODE_FAIL && !node->numslaves) {
                 node->flags &= ~REDIS_NODE_FAIL;
+                clusterUpdateState();
             }
         } else {
             /* Timeout reached. Set the noad se possibly failing if it is