* Stuart Henderson <[email protected]> [2012-01-11 15:51]: > On 2011/12/31 20:24, Camiel Dobbelaar wrote: > > + if (env->sc_flags & F_DEMOTE) > > + carp_demote_reset(env->sc_demote_group, 0); > > + > > hmmm, forcing the counter to 0 doesn't interact very well with > routing daemons which may have increased the counter because an > important peer or interface is down .. > > is there a need to do it this way rather than increment/decrement > the counter by a fixed amount?
stuart is right. no daemon should ever set the demotion counter to a absolute value, just increase and decrease, and decrease no more than itself has increased. -- Henning Brauer, [email protected], [email protected] BS Web Services, http://bsws.de, Full-Service ISP Secure Hosting, Mail and DNS Services. Dedicated Servers, Root to Fully Managed Henning Brauer Consulting, http://henningbrauer.com/
