BUG/MEDIUM: connections: Don't increase curr_used_conns for shared connections.
authorOlivier Houchard <cognet@ci0.org>
Sun, 28 Jun 2020 14:14:09 +0000 (16:14 +0200)
committerOlivier Houchard <cognet@ci0.org>
Sun, 28 Jun 2020 14:16:13 +0000 (16:16 +0200)
commit4ba494ca1bee297dde82f0fde546621bb5e1ce30
tree723936342e0a3361ba9bfae5dc304c2fdbd20612
parentfc402cf3bc43da1aa9bccdb1d090186962d33745
BUG/MEDIUM: connections: Don't increase curr_used_conns for shared connections.

In connect_server(), we want to increase curr_used_conns only if the
connection is new, or if it comes from an idle_pool, otherwise it means
the connection is already used by at least one another stream, and it is
already accounted for.
src/backend.c