| 36 | } |
| 37 | |
| 38 | static ClientInfo::QueryKind parseQueryKind(const String & query_kind) |
| 39 | { |
| 40 | if (query_kind == "initial_query") |
| 41 | return ClientInfo::QueryKind::INITIAL_QUERY; |
| 42 | if (query_kind == "secondary_query") |
| 43 | return ClientInfo::QueryKind::SECONDARY_QUERY; |
| 44 | if (query_kind == "no_query") |
| 45 | return ClientInfo::QueryKind::NO_QUERY; |
| 46 | throw Exception(ErrorCodes::BAD_ARGUMENTS, "Unknown query kind {}", query_kind); |
| 47 | } |
| 48 | |
| 49 | /// This signal handler is set only for SIGINT and SIGQUIT. |
| 50 | void interruptSignalHandler(int signum) |