Skip to content

Commit

Permalink
bugfix: keepalived new_vs quorum_state_up always be true and quorum_u…
Browse files Browse the repository at this point in the history
…p script will not be excuted

when all old rs(healthcheck is alive) are removed and new rs(healthcheck is alive) add in same reload.
  • Loading branch information
lixiaoxiao committed Mar 25, 2024
1 parent ef96bbf commit aa9f6fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/keepalived/keepalived/check/ipwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,12 @@ clear_diff_rs(virtual_server_t *old_vs, virtual_server_t *new_vs, list old_check
}
}
clear_service_rs(old_vs, rs_to_remove, false);

//keep new_vs quorum_state_up same with old_vs
if (old_vs->quorum_state_up != new_vs->quorum_state_up) {
new_vs->quorum_state_up = old_vs->quorum_state_up;
}

free_list(&rs_to_remove);
}

Expand Down

0 comments on commit aa9f6fe

Please sign in to comment.