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>
Wed, 28 Apr 2021 12:56:23 +0000 (14:56 +0200)
commiteb2f8e0c27308c6a56f59ff00c2a2232e980ebca
tree0aebc2662aa5573844ec680c3a70560899e02838
parent13eca443b4b38c15cd5ec990a4f22dcd6c606a1e
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>
src/peers.c