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:51:30 +0000 (16:51 +0100)
commitb807e9c8f13758520da8d4b59ff4261b26f929c7
tree345da18178753c3df135d14baf02380cc435882d
parent715a80c129ef6e2e0cc8adda1511e32c4926bf33
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>
(cherry picked from commit 9650ee94b3cc5bc2e6c2a7cf67ef66c0273c1404)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c65161466af0bbf1cce39727ffff1bbaefcfa9ec)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/peers.c