Resets the internal failover configuration, this needs * to be called after a failover either succeeds or fails * as it includes the client unpause. */
| 3559 | * to be called after a failover either succeeds or fails |
| 3560 | * as it includes the client unpause. */ |
| 3561 | void clearFailoverState() { |
| 3562 | server.failover_end_time = 0; |
| 3563 | server.force_failover = 0; |
| 3564 | zfree(server.target_replica_host); |
| 3565 | server.target_replica_host = NULL; |
| 3566 | server.target_replica_port = 0; |
| 3567 | server.failover_state = NO_FAILOVER; |
| 3568 | unpauseClients(); |
| 3569 | } |
| 3570 | |
| 3571 | /* Abort an ongoing failover if one is going on. */ |
| 3572 | void abortFailover(const char *err) { |
no test coverage detected