summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-11-13 13:43:59 +0100
committerantirez <antirez@gmail.com>2013-11-21 15:20:07 +0100
commitfc10fb17dac833972c0f53c05ccde599ae58b64b (patch)
tree7a442e7e872a6e27c0cf146aff0f1c3b81d68731
parentb02ef3d59a2d7d6d271f3ae7551c78006f642e32 (diff)
downloadredis-fc10fb17dac833972c0f53c05ccde599ae58b64b.tar.gz
Sentinel: fix no-down check in master->slave conversion code.
-rw-r--r--src/sentinel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index b3f27b7d3..35880f7ee 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;