[MINOR] lb_map: reorder code in order to ease integration of new hash functions
authorWilly Tarreau <w@1wt.eu>
Thu, 1 Oct 2009 19:11:15 +0000 (21:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Oct 2009 19:11:15 +0000 (21:11 +0200)
commit39c9ba72a7fdf3ecf11454f895c84befa0509b97
tree6cf7ab9d33501918c7e518fbce5f94fe6c2695b1
parentf89c1873f8a144e67403e402cf24879a9527978d
[MINOR] lb_map: reorder code in order to ease integration of new hash functions

We need to remove hash map accesses out of backend.c if we want to
later support new hash methods. This patch separates the hash computation
method from the server lookup. It leaves the lookup function to lb_map.c
and calls it with the result of the hash.
include/proto/lb_map.h
src/backend.c
src/lb_map.c