commit | 7d09b9a4df37ef06153df6869a89f11cbd75bc8c | [log] [tgz] |
---|---|---|
author | Simon Horman <horms@verge.net.au> | Tue Feb 12 10:45:51 2013 +0900 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 13 10:53:40 2013 +0100 |
tree | fdbcf60d6238bf14b04be6013a62ae93e0cd4d69 | |
parent | 74d8831e9008efbb344f781adf7803ebe1d25a78 [diff] |
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>