]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] backend: separate declarations of LB algos from their lookup method
authorWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 10:21:20 +0000 (12:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 3 Oct 2009 16:41:18 +0000 (18:41 +0200)
commitf3e49f95213165bad22e116364701903bb0fbc60
treed39fd89d0c471e175e4f739ee0df6a2ad91a4feb
parent5b4c2b58fe6fafa4b8d2ae138dfd986cce514381
[MINOR] backend: separate declarations of LB algos from their lookup method

LB algo macros were composed of the LB algo by itself without any indication
of the method to use to look up a server (the lb function itself). This
method was implied by the LB algo, which was not very convenient to add
more algorithms. Now we have several fields in the LB macros, some to
describe what to look for in the requests, some to describe how to transform
that (kind of algo) and some to describe what lookup function to use.

The next patch will make it possible to factor out some code for all algos
which rely on a map.
include/types/backend.h
src/backend.c
src/cfgparse.c
src/proxy.c