]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: Break out set weight processing code
authorSimon Horman <horms@verge.net.au>
Tue, 12 Feb 2013 01:45:51 +0000 (10:45 +0900)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 09:53:40 +0000 (10:53 +0100)
commit7d09b9a4df37ef06153df6869a89f11cbd75bc8c
treefdbcf60d6238bf14b04be6013a62ae93e0cd4d69
parent74d8831e9008efbb344f781adf7803ebe1d25a78
MEDIUM: server: Break out set weight processing code

Break out set weight processing code.
This is in preparation for reusing the code.

Also, remove duplicate check in nested if clauses.
{px->lbprm.algo & BE_LB_PROP_DYN) is checked by
the immediate outer if clause, so there is no need
to check it a second time.

Signed-off-by: Simon Horman <horms@verge.net.au>
include/proto/server.h
src/dumpstats.c
src/server.c