BUG/MEDIUM: peers: register last acked value as origin receiving a resync req
authorEmeric Brun <ebrun@haproxy.com>
Wed, 28 Apr 2021 07:49:33 +0000 (09:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Apr 2021 09:12:13 +0000 (11:12 +0200)
commitfcd6f73f0e6cb3a026c0ffa4b65a138b1586e330
tree0a4b18ad9aabc3376ec4ead79523ae181da9b1b5
parente63385e6ee12d9db184d9cba7446f54db39ffd9f
BUG/MEDIUM: peers: register last acked value as origin receiving a resync req

Receiving a resync request, the origins to start the full sync and
to reset after the full resync are mistakenly computed based on
the last update on the table instead of computed based on the
the last update acked by the node requesting the resync.

It could result in disordered or missing updates pushing to the
requester

This patch sets correctly those origins.

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

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