]> git.kaiwu.me - haproxy.git/commit
[BUG] option allbackups was not working anymore in roundrobin mode
authorWilly Tarreau <w@1wt.eu>
Sat, 8 Mar 2008 20:42:54 +0000 (21:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 Mar 2008 20:59:15 +0000 (21:59 +0100)
commit7f4ff3f61d33b3e2e8595847825e9489b1076ef8
tree4569de27a3666a6fcbe60a7afb7f8539faa4a1f8
parent4415cb391d3578fb051a4ba447dbd6060480de8a
[BUG] option allbackups was not working anymore in roundrobin mode

Commit 3168223a7b33a1d5aad1e11b8f2ad917645d7f27 broke option
"allbackups" in roundrobin mode due to an erroneous structure
member replacement in backend.c. The PR_O_USE_ALL_BK flag was
not tested in the right member anymore.

This bug uncoverred another one, by which all backup servers would
be used whatever the option's value, if all of them had been seen
as simultaneously failed at one moment.

This patch fixes the two stupid errors. Correctness has been tested
using the test-fwrr.cfg config example.
(cherry picked from commit f4cca45b5e6c6ed88a0062cf92ae57e01405ab12)
src/backend.c