mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 17:36:28 +00:00
Compare commits
1 Commits
mostafa_sq
...
levkk-drop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6a13d047d |
@@ -759,9 +759,13 @@ where
|
|||||||
// Pgbouncer closes the connection which leads to
|
// Pgbouncer closes the connection which leads to
|
||||||
// connection thrashing when clients misbehave.
|
// connection thrashing when clients misbehave.
|
||||||
if server.in_transaction() {
|
if server.in_transaction() {
|
||||||
server.query("ROLLBACK").await?;
|
// server.query("ROLLBACK").await?;
|
||||||
server.query("DISCARD ALL").await?;
|
// server.query("DISCARD ALL").await?;
|
||||||
server.set_name("pgcat").await?;
|
// server.set_name("pgcat").await?;
|
||||||
|
|
||||||
|
// TODO: Figure out a clever way to ensure
|
||||||
|
// the server has no more messages for us.
|
||||||
|
server.mark_bad();
|
||||||
}
|
}
|
||||||
|
|
||||||
self.release();
|
self.release();
|
||||||
|
|||||||
Reference in New Issue
Block a user