]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: proxy: add comment for defaults_px_ref/unref_all()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 07:52:20 +0000 (08:52 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 13:08:30 +0000 (14:08 +0100)
Write documentation for functions related to default proxies instances.

src/proxy.c

index b70c70b0017a1743e355c98a31bef70e1049039f..c3293de1fac4079c07bca6a226eeca3fae3dc1ef 100644 (file)
@@ -3014,6 +3014,7 @@ void defaults_px_detach(struct proxy *px)
        /* If not destroyed, <px> can still be accessed in <defaults_list>. */
 }
 
+/* Increments by one defaults proxy reference of all defaults stored in tree name. */
 void defaults_px_ref_all(void)
 {
        struct proxy *px;
@@ -3025,6 +3026,7 @@ void defaults_px_ref_all(void)
        }
 }
 
+/* Decrements defaults proxy ref of all defaults. This is the reverse of defaults_px_ref_all(). */
 void defaults_px_unref_all(void)
 {
        struct proxy *px, *nx;