update state when FAIL is cleared from a node

This commit is contained in:
antirez 2011-04-08 14:19:52 +02:00
parent 34311de49b
commit cf24d4a2bb

View 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