]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: server: fix update_status() function comment
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 27 Mar 2023 09:57:28 +0000 (11:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Apr 2023 12:36:45 +0000 (14:36 +0200)
srv_update_status() function comment says that the function "is designed
to be called asynchronously".

While this used to be true back then with 64cc49cf
("MAJOR: servers: propagate server status changes asynchronously.")

This is not true anymore since 3ff577e ("MAJOR: server: make server state changes
synchronous again")

Fixing the comment in order to better reflect current behavior.

src/server.c

index add9d77e106630db17f3d315fa6d9489b3e9d901..12475375c1204e5953ecdae3e4b5cd9968477cb3 100644 (file)
@@ -5270,8 +5270,7 @@ int srv_apply_track(struct server *srv, struct proxy *curproxy)
 }
 
 /*
- * This function applies server's status changes, it is
- * is designed to be called asynchronously.
+ * This function applies server's status changes.
  *
  * Must be called with the server lock held. This may also be called at init
  * time as the result of parsing the state file, in which case no lock will be