]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: peers: Remove unused PEERS_F_RESYNC_REQUESTED flag
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Apr 2024 16:58:14 +0000 (18:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:57 +0000 (18:29 +0200)
This flag was used for debugging purpose to know a resync was requested at
least once in the process life. Since the last bunch of fixes about the
peers locking mechanism, this info is now set per-peer. There is no reason
to still have it on peers too. So, just remove it.

src/peers.c

index cf2d92683b856db16087404c26f3eab7b748f834..bd34b448512c875f2291f4778374ccb0c378e256 100644 (file)
@@ -71,7 +71,7 @@
 #define PEERS_F_RESYNC_REMOTEPARTIAL  0x00000800 /* A remote node teach us but was partially up to date */
 #define PEERS_F_RESYNC_LOCALASSIGN    0x00001000 /* A local node was assigned for a full resync */
 #define PEERS_F_RESYNC_REMOTEASSIGN   0x00002000 /* A remote node was assigned for a full resync */
-#define PEERS_F_RESYNC_REQUESTED      0x00004000 /* A resync was explicitly requested */
+
 #define PEERS_F_DONOTSTOP             0x00010000 /* Main table sync task block process during soft stop
                                                     to push data to new process */
 
@@ -3379,9 +3379,6 @@ static void __process_peer_learn_status(struct peers *peers, struct peer *peer)
 
 static void __process_peer_state(struct peers *peers, struct peer *peer)
 {
-       if (peer->flags & PEER_F_RESYNC_REQUESTED)
-               peers->flags |= PEERS_F_RESYNC_REQUESTED;
-
        /* Check peer state. Order is important */
        if (peer->flags & (PEER_F_ST_RELEASED|PEER_F_ST_CONNECTED|PEER_F_ST_ACCEPTED)) {
                if (peer->flags & PEER_F_LEARN_ASSIGN) {