BUG/MEDIUM: peers: reset tables stage flags stages on new conns
authorEmeric Brun <ebrun@haproxy.com>
Tue, 20 Apr 2021 12:43:46 +0000 (14:43 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Apr 2021 09:12:39 +0000 (11:12 +0200)
commita817c2e6c95041bbcb63d92b13dcdf7c31ac9436
treed762dbc176c1f9f6e0845b78cb08a3f3dd962a25
parent94719f9478e238324ce298416b008a6758a6f144
BUG/MEDIUM: peers: reset tables stage flags stages on new conns

Flags used as context to know current status of each table pushing a
full resync to a peer were correctly reset receiving a new resync
request or confirmation message but in case of local peer sync during
reload the resync request is implicit and those flags were not
correctly reset in this case.

This could result to a partial initial resync of some tables after reload
if the connection with the old process was broken and retried.

This patch reset those flags at the end of the handshake for all new
connections to be sure to push a entire full resync if needed.

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

(cherry picked from commit 1a6b43e13eeb4872dff9944064ddadc1ceb5178f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5c88077c8a7f5b2819d5d196e4a822028cbabeac)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 382967794171147b1c1e5ca90dd37722146cdc29)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/peers.c