mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
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…
x
Reference in New Issue
Block a user