BUG/MINOR: peers: some updates are pushed twice after a resync.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 10 Aug 2016 15:19:27 +0000 (17:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 15:42:13 +0000 (17:42 +0200)
commitcc522744967c6d6a3d8f78ab5f54a0ec19a17577
tree753e741eb84d4e8cc57897af2091e7e2436d75bb
parent16e015635c1c76604572acc4d780572d451977ac
BUG/MINOR: peers: some updates are pushed twice after a resync.

This bug is due to a copy/paste error and was introduced
with peers-protocol v2:

The last_pushed pointer was not correctly reset to the teaching_origin at
the end of the teaching state but to the first update present in the tree.

The result: some updates were re-pushed after leaving the teaching state.

This fix needs to be backported to 1.6.
src/peers.c