From fc10fb17dac833972c0f53c05ccde599ae58b64b Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 13 Nov 2013 13:43:59 +0100 Subject: [PATCH] Sentinel: fix no-down check in master->slave conversion code. --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index b3f27b7d..35880f7e 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1576,7 +1576,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) { * configuratio via Pub/Sub if any. */ mstime_t wait_time = SENTINEL_PUBLISH_PERIOD*4; - if (!sentinelRedisInstanceNoDownFor(ri->master,wait_time) || + if (!sentinelRedisInstanceNoDownFor(ri,wait_time) || (mstime()-sentinel.tilt_start_time) < wait_time) return;