]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: backend: remove an obsolete comment on conn_backend_get
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 26 Jan 2021 13:35:25 +0000 (14:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2021 13:48:39 +0000 (14:48 +0100)
This comment was valid for haproxy 1.8 but now it is obsolete.

src/backend.c

index e3170ee9b48d030b03a0af68838a84730b4f74d5..51554fe069e34d7da7b68864d735181b659fd157 100644 (file)
@@ -1301,12 +1301,7 @@ int connect_server(struct stream *s)
                                 srv->curr_idle_nb > 0) {
                                srv_conn = conn_backend_get(s, srv, 0);
                        }
-                       /* If we've picked a connection from the pool, we now have to
-                        * detach it. We may have to get rid of the previous idle
-                        * connection we had, so for this we try to swap it with the
-                        * other owner's. That way it may remain alive for others to
-                        * pick.
-                        */
+
                        if (srv_conn)
                                reuse = 1;
                }