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:
Mostafa Abdelraouf
2022-09-07 22:37:17 -05:00
committed by GitHub
parent 6d41640ea9
commit 9514b3b2d1
3 changed files with 29 additions and 0 deletions

View File

@@ -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 {