| 178 | } |
| 179 | |
| 180 | ContextMutablePtr DDLTaskBase::makeQueryContext(ContextPtr from_context, const ZooKeeperPtr & /*zookeeper*/) |
| 181 | { |
| 182 | auto query_context = Context::createCopy(from_context); |
| 183 | query_context->makeQueryContext(); |
| 184 | query_context->setCurrentQueryId(""); // generate random query_id |
| 185 | query_context->getClientInfo().query_kind = ClientInfo::QueryKind::SECONDARY_QUERY; |
| 186 | if (entry.settings) |
| 187 | query_context->applySettingsChanges(*entry.settings); |
| 188 | return query_context; |
| 189 | } |
| 190 | |
| 191 | |
| 192 | bool DDLTask::findCurrentHostID(ContextPtr global_context, Poco::Logger * log) |
no test coverage detected