BUG/MINOR: peers: Missing TX cache entries reset.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 12 Nov 2020 20:01:54 +0000 (21:01 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Nov 2020 15:33:29 +0000 (16:33 +0100)
commit9650ee94b3cc5bc2e6c2a7cf67ef66c0273c1404
tree711ae0100538b88be80b8ff8f12496d43041d66f
parentcd24d5cfbe58bf2b25a76d077a0923053cbf7838
BUG/MINOR: peers: Missing TX cache entries reset.

The TX part of a cache for a dictionary is made of an reserved array of ebtree nodes
which are pointers to dictionary entries. So when we flush the TX part of such a
cache, we must not only remove these nodes to dictionary entries from their ebtree.
We must also reset their values. Furthermore, the LRU key and the last lookup
result must also be reset.

(cherry picked from commit ea875e62e6b2f69c50533c5cd52eb5284c69723f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/peers.c