We actually wait for promotion indirectly checking with INFO when the * slave turns into a master. */
| 4814 | /* We actually wait for promotion indirectly checking with INFO when the |
| 4815 | * slave turns into a master. */ |
| 4816 | void sentinelFailoverWaitPromotion(sentinelRedisInstance *ri) { |
| 4817 | /* Just handle the timeout. Switching to the next state is handled |
| 4818 | * by the function parsing the INFO command of the promoted slave. */ |
| 4819 | if (mstime() - ri->failover_state_change_time > ri->failover_timeout) { |
| 4820 | sentinelEvent(LL_WARNING,"-failover-abort-slave-timeout",ri,"%@"); |
| 4821 | sentinelAbortFailover(ri); |
| 4822 | } |
| 4823 | } |
| 4824 | |
| 4825 | void sentinelFailoverDetectEnd(sentinelRedisInstance *master) { |
| 4826 | int not_reconfigured = 0, timeout = 0; |
no test coverage detected