mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 21:42:13 +00:00
Sentinel: fix no-down check in master->slave conversion code.
This commit is contained in:
parent
b02ef3d59a
commit
fc10fb17da
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user