]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lb_fwrr: Move the next weight out of fwrr_group.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 17 Apr 2025 13:50:33 +0000 (15:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Apr 2025 15:38:23 +0000 (17:38 +0200)
commit7ca1c94ff0fab5eb18f14a71a3d02c2c943ab16c
treed46fa117864d8dd179c79fba4e16df2145fe784d
parent444125a7649382332a641881a5614594cd475951
MINOR: lb_fwrr: Move the next weight out of fwrr_group.

Move the "next_weight" outside of fwrr_group, and inside struct lb_fwrr
directly, one for the active servers, one for the backup servers.
We will soon have one fwrr_group per thread group, but next_weight will
be global to all of them.
include/haproxy/lb_fwrr-t.h
src/lb_fwrr.c