| 403 | } |
| 404 | |
| 405 | void RemoteQueryExecutor::sendQuery(ClientInfo::QueryKind query_kind, AsyncCallback async_callback) |
| 406 | { |
| 407 | /// Query cannot be canceled in the middle of the send query, |
| 408 | /// since there are multiple packets: |
| 409 | /// - Query |
| 410 | /// - Data (multiple times) |
| 411 | /// |
| 412 | /// And after the Cancel packet none Data packet can be sent, otherwise the remote side will throw: |
| 413 | /// |
| 414 | /// Unexpected packet Data received from client |
| 415 | /// |
| 416 | LockAndBlocker guard(was_cancelled_mutex); |
| 417 | sendQueryUnlocked(query_kind, async_callback); |
| 418 | } |
| 419 | |
| 420 | void RemoteQueryExecutor::sendQueryUnlocked(ClientInfo::QueryKind query_kind, AsyncCallback async_callback) |
| 421 | { |
no outgoing calls
no test coverage detected