Use getContext

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
Raúl Marín 2021-11-24 09:58:03 +01:00 committed by GitHub
parent 15dc86bd37
commit cb6f99fe6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ PipelineExecutor::PipelineExecutor(Processors & processors, QueryStatus * elem)
}
if (process_list_element)
{
auto settings = process_list_element->context.lock()->getSettings();
auto settings = process_list_element->getContext()->getSettings();
limits.max_execution_time = settings.max_execution_time;
overflow_mode = settings.timeout_overflow_mode;