]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR peers: data structure simplifications for server names dictionary cache.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 6 Jun 2019 09:34:03 +0000 (11:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Jun 2019 13:47:54 +0000 (15:47 +0200)
commit6c39198b575444466ddfc5368e481d2a7cf8111d
tree817d84246c5ce41dc7d457df48e0177b3bfd6993
parent6ec902a6590bff551f332d8a1a9b67b2dda02829
MINOR peers: data structure simplifications for server names dictionary cache.

We store pointers to server names dictionary entries in a pre-allocated array of
ebpt_node's (->entries member of struct dcache_tx) to cache those sent to remote
peers. Consequently the ID used to identify the server name dictionary entry is
also used as index for this array. There is no need to implement a lookup by key
for this dictionary cache.
include/types/peers.h
src/peers.c