mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
Possible fix for clients waiting stat leak (#68)
This commit is contained in:
@@ -215,12 +215,14 @@ impl ConnectionPool {
|
|||||||
// as per request. If no specific role is requested, the first
|
// as per request. If no specific role is requested, the first
|
||||||
// available will be chosen.
|
// available will be chosen.
|
||||||
if address.role != role {
|
if address.role != role {
|
||||||
|
self.stats.client_disconnecting(process_id, address.id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
allowed_attempts -= 1;
|
allowed_attempts -= 1;
|
||||||
|
|
||||||
if self.is_banned(address, shard, role) {
|
if self.is_banned(address, shard, role) {
|
||||||
|
self.stats.client_disconnecting(process_id, address.id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user