mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
fix check when can't send the command to the promoted slave
This commit is contained in:
parent
8c4f4d12d8
commit
aa578446ba
@ -3996,7 +3996,7 @@ void sentinelFailoverSendSlaveOfNoOne(sentinelRedisInstance *ri) {
|
|||||||
/* We can't send the command to the promoted slave if it is now
|
/* We can't send the command to the promoted slave if it is now
|
||||||
* disconnected. Retry again and again with this state until the timeout
|
* disconnected. Retry again and again with this state until the timeout
|
||||||
* is reached, then abort the failover. */
|
* is reached, then abort the failover. */
|
||||||
if (ri->link->disconnected) {
|
if (ri->promoted_slave->link->disconnected) {
|
||||||
if (mstime() - ri->failover_state_change_time > ri->failover_timeout) {
|
if (mstime() - ri->failover_state_change_time > ri->failover_timeout) {
|
||||||
sentinelEvent(LL_WARNING,"-failover-abort-slave-timeout",ri,"%@");
|
sentinelEvent(LL_WARNING,"-failover-abort-slave-timeout",ri,"%@");
|
||||||
sentinelAbortFailover(ri);
|
sentinelAbortFailover(ri);
|
||||||
|
Loading…
Reference in New Issue
Block a user