mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-26 02:16:30 +00:00
Clean connection state up after protocol named prepared statement (#163)
* Clean connection state up after protocol named prepared statement * Avoid cloning + add test * fmt
This commit is contained in:
committed by
GitHub
parent
6d41640ea9
commit
9514b3b2d1
@@ -638,6 +638,11 @@ impl Server {
|
||||
pub fn last_activity(&self) -> SystemTime {
|
||||
self.last_activity
|
||||
}
|
||||
|
||||
// Marks a connection as needing DISCARD ALL at checkin
|
||||
pub fn mark_dirty(&mut self) {
|
||||
self.needs_cleanup = true;
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Server {
|
||||
|
||||
Reference in New Issue
Block a user