mirror of https://mirror.osredm.com/root/redis.git
Sentinel: fix no-down check in master->slave conversion code.
This commit is contained in:
parent
ae35b7e240
commit
9e40c46f5e
|
@ -1574,7 +1574,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue