Commit fc10fb17 authored by antirez's avatar antirez
Browse files

Sentinel: fix no-down check in master->slave conversion code.

parent b02ef3d5
...@@ -1576,7 +1576,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) { ...@@ -1576,7 +1576,7 @@ void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
* configuratio via Pub/Sub if any. */ * configuratio via Pub/Sub if any. */
mstime_t wait_time = SENTINEL_PUBLISH_PERIOD*4; 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) (mstime()-sentinel.tilt_start_time) < wait_time)
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment