From: Vincent Bernat Date: Tue, 6 Oct 2009 13:38:03 +0000 (+0000) Subject: Keep previous effective VRRP priority on reload. X-Git-Tag: v1.2.1~29 X-Git-Url: http://git.formilux.org/?a=commitdiff_plain;h=70b30949580e9bce78831d8a1e48ee458bfdcb41;p=people%2Falex%2Fkeepalived.git Keep previous effective VRRP priority on reload. When using weighted scripts or interfaces, on reload, the VRRP priority is resetted to the default priority for the first packets to be sent, until vrrp_update_priority() thread is called. --- diff --git a/keepalived/vrrp/vrrp.c b/keepalived/vrrp/vrrp.c index a0673f0..bca43f5 100644 --- a/keepalived/vrrp/vrrp.c +++ b/keepalived/vrrp/vrrp.c @@ -1108,6 +1108,7 @@ reset_vrrp_state(vrrp_rt * old_vrrp) vrrp->state = old_vrrp->state; vrrp->init_state = old_vrrp->state; vrrp->wantstate = old_vrrp->state; + vrrp->effective_priority = old_vrrp->effective_priority; memcpy(vrrp->ipsecah_counter, old_vrrp->ipsecah_counter, sizeof(seq_counter)); #ifdef _HAVE_IPVS_SYNCD_