diff options
author | antirez <antirez@gmail.com> | 2013-11-13 13:43:59 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-11-21 15:20:07 +0100 |
commit | fc10fb17dac833972c0f53c05ccde599ae58b64b (patch) | |
tree | 7a442e7e872a6e27c0cf146aff0f1c3b81d68731 | |
parent | b02ef3d59a2d7d6d271f3ae7551c78006f642e32 (diff) | |
download | redis-fc10fb17dac833972c0f53c05ccde599ae58b64b.tar.gz |
Sentinel: fix no-down check in master->slave conversion code.
-rw-r--r-- | src/sentinel.c | 2 |
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; |