MINOR: server: skip servers with no idle conns earlier
authorWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 06:24:44 +0000 (08:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 08:33:39 +0000 (10:33 +0200)
commit151c253a1e7623ca099fb94cecb40d2adab75b04
treed922b08beb0a5c6aa87befb6ccd493a8eec96070
parent69f591e3b063345668e96653d30719922e2384e7
MINOR: server: skip servers with no idle conns earlier

In conn_backend_get() we can avoid locking other servers when trying
to steal their connections when we know for sure they will not have
one, so let's do it to lower the contention on the lock.
src/backend.c