From 9e40c46f5e2e4799f072cb91ab7e5af46cccdc18 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
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 72ef3587..fb5896eb 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -1574,7 +1574,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;