mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-25 10:06:28 +00:00
comments
This commit is contained in:
@@ -305,6 +305,7 @@ impl Server {
|
||||
self.bad = true;
|
||||
}
|
||||
|
||||
/// Claim this server as mine for the purposes of query cancellation.
|
||||
pub fn claim(&mut self, process_id: i32, secret_key: i32) {
|
||||
let mut guard = self.client_server_map.lock().unwrap();
|
||||
guard.insert((process_id, secret_key), (self.backend_id, self.secret_key));
|
||||
|
||||
Reference in New Issue
Block a user