mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
Report checkout error when all servers are down (#736)
We shouldn't report checkout_success when we are going to return Error.
This commit is contained in:
committed by
GitHub
parent
c9270a47d4
commit
966b8e093c
@@ -813,7 +813,7 @@ impl ConnectionPool {
|
||||
}
|
||||
}
|
||||
|
||||
client_stats.checkout_success();
|
||||
client_stats.checkout_error();
|
||||
|
||||
Err(Error::AllServersDown)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user