BUG/MEDIUM: peers: re-work updates lookup during the sync on the fly
authorEmeric Brun <ebrun@haproxy.com>
Wed, 28 Apr 2021 09:48:15 +0000 (11:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Apr 2021 12:56:47 +0000 (14:56 +0200)
commitd9e4ee61a009410ec059127383fbccbac51e8e30
tree911954f41e370bd3209d86cf8b2b629f8cde7910
parentcd0a30e441faa7d2c6d71f9541d092140f04e6ef
BUG/MEDIUM: peers: re-work updates lookup during the sync on the fly

Only entries between the opposite of the last 'local update' rotating
counter were considered to be pushed. This processing worked in most
cases because updates are continually pushed trying to reach this point
but it remains some cases where updates id are more far away in the past
and appearing in futur and the push of updates is stuck until the head
reach again the tail which could take a very long time.

This patch re-work the lookup to consider that all positions on the
rotating counter is considered in the past until we reach exactly
the 'local update' value. Doing this, the updates push won't be stuck
anymore.

This patch should be backported on all supported branches ( >= 1.6 )

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