BUG/MEDIUM: peers: resync ended with RESYNC_PARTIAL in wrong cases.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 16 Mar 2020 09:51:01 +0000 (10:51 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 16 Mar 2020 10:32:47 +0000 (11:32 +0100)
commit70de43b77b10c6868b1ed42ac5439731ae6fa911
treece6a482005bdab8f2a9da8147c07d96dce372843
parent67b095e797a156ae27b7b52f6ccf57171717dd16
BUG/MEDIUM: peers: resync ended with RESYNC_PARTIAL in wrong cases.

This bug was introduced with peers.c code re-work (7d0ceeec80):
"struct peer" flags are mistakenly checked instead of
"struct peers" flags to check the resync status of the local peer.

The issue was reported here:
   https://github.com/haproxy/haproxy/issues/545

This bug affects all branches >= 2.0 and should be backported.
src/peers.c