Fixed clearNodeFailureIfNeeded() time type to mstime_t.

This prevented 32bit cluster instances from clearing the FAIL flag when
needed.
This commit is contained in:
antirez 2013-12-17 09:45:42 +01:00
parent e88e6a6334
commit 47815d38e0

View File

@ -748,7 +748,7 @@ void markNodeAsFailingIfNeeded(clusterNode *node) {
* to reach it again. It checks if there are the conditions to undo the FAIL * to reach it again. It checks if there are the conditions to undo the FAIL
* state. */ * state. */
void clearNodeFailureIfNeeded(clusterNode *node) { void clearNodeFailureIfNeeded(clusterNode *node) {
time_t now = mstime(); mstime_t now = mstime();
redisAssert(node->flags & REDIS_NODE_FAIL); redisAssert(node->flags & REDIS_NODE_FAIL);