MINOR: peers: add informative flags about resync process for debugging
authorEmeric Brun <ebrun@haproxy.com>
Wed, 28 Apr 2021 10:59:35 +0000 (12:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 29 Apr 2021 09:12:45 +0000 (11:12 +0200)
commit19018e51587f8e3f3154cc67607495116bb4f1eb
tree5a09926a327a83a1621e3c2a2b630025008630cd
parenta817c2e6c95041bbcb63d92b13dcdf7c31ac9436
MINOR: peers: add informative flags about resync process for debugging

This patch adds miscellenous informative flags raised during the initial
full resync process performed during the reload for debugging purpose.

0x00000010: Timeout waiting for a full resync from a local node
0x00000020: Timeout waiting for a full resync from a remote node
0x00000040: Session aborted learning from a local node
0x00000080: Session aborted learning from a remote node
0x00000100: A local node teach us and was fully up to date
0x00000200: A remote node teach us and was fully up to date
0x00000400: A local node teach us but was partially up to date
0x00000800: A remote node teach us but was partially up to date
0x00001000: A local node was assigned for a full resync
0x00002000: A remote node was assigned for a full resync
0x00004000: A resync was explicitly requested

This patch could be backported on any supported branch

(cherry picked from commit ccdfbae62cc5e5023bc857cbc04f680145435a1e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e1f55742e0512e42ba9bf37233de8af38eb49968)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit dc5812877e2f323e7597a8fe16b9b2a5827bf99c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/peers.c