| 1542 | |
| 1543 | /// Entries in the 'query_locations' map. |
| 1544 | struct QueryLocationInfo { |
| 1545 | QueryLocationInfo(NetworkAddressPB address, TUniqueId query_id) |
| 1546 | : address(std::move(address)) { |
| 1547 | query_ids.insert(std::move(query_id)); |
| 1548 | } |
| 1549 | |
| 1550 | /// Used for logging and error messages so that users don't have to translate between |
| 1551 | /// the BackendIdPB and a hostname themselves. |
| 1552 | NetworkAddressPB address; |
| 1553 | |
| 1554 | /// Queries currently running or expected to run at this location. |
| 1555 | std::unordered_set<TUniqueId> query_ids; |
| 1556 | }; |
| 1557 | |
| 1558 | /// Contains info about what queries are running on each backend, so that they can be |
| 1559 | /// cancelled if the backend goes down. |
no outgoing calls
no test coverage detected