]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: peers: Add comment on processing functions of the sync task
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 07:49:00 +0000 (09:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:58 +0000 (18:29 +0200)
Just add a comment on __process_running_peer_sync() and
__process_stopping_peer_sync() functions.

src/peers.c

index 129d28fef807af5ff8b59f7dc0a616e4d07feabb..d854780711aa996d9002795205714faca869a2a8 100644 (file)
@@ -3385,6 +3385,7 @@ static void sync_peer_app_state(struct peers *peers, struct peer *peer)
        }
 }
 
+/* Process the sync task for a running process.  It is called from process_peer_sync() only */
 static void __process_running_peer_sync(struct task *task, struct peers *peers, unsigned int state)
 {
        struct peer *ps;
@@ -3554,6 +3555,7 @@ static void __process_running_peer_sync(struct task *task, struct peers *peers,
        }
 }
 
+/* Process the sync task for a stopping process. It is called from process_peer_sync() only */
 static void __process_stopping_peer_sync(struct task *task, struct peers *peers, unsigned int state)
 {
        struct peer *ps;