]> git.saurik.com Git - redis.git/commitdiff
master node without slaves rejoin fixed
authorantirez <antirez@gmail.com>
Thu, 7 Apr 2011 21:10:32 +0000 (23:10 +0200)
committerantirez <antirez@gmail.com>
Thu, 7 Apr 2011 21:10:32 +0000 (23:10 +0200)
src/cluster.c

index ab101d4366cc4565427fb99f603b66c2845f8f2b..6a693d6e90491a1e6f3c845f7f64ccdaa194864f 100644 (file)
@@ -919,8 +919,8 @@ void clusterCron(void) {
         int delay;
 
         if (node->flags &
-            (REDIS_NODE_MYSELF|REDIS_NODE_NOADDR|REDIS_NODE_HANDSHAKE|
-             REDIS_NODE_FAIL)) continue;
+            (REDIS_NODE_MYSELF|REDIS_NODE_NOADDR|REDIS_NODE_HANDSHAKE))
+                continue;
         /* Check only if we already sent a ping and did not received
          * a reply yet. */
         if (node->ping_sent == 0 ||
@@ -945,7 +945,7 @@ void clusterCron(void) {
         } else {
             /* Timeout reached. Set the noad se possibly failing if it is
              * not already in this state. */
-            if (!(node->flags & REDIS_NODE_PFAIL)) {
+            if (!(node->flags & (REDIS_NODE_PFAIL|REDIS_NODE_FAIL))) {
                 redisLog(REDIS_DEBUG,"*** NODE %.40s possibly failing",
                     node->name);
                 node->flags |= REDIS_NODE_PFAIL;