Avoid segfaults and many other problems related with modifying global context in DDLWorker. [#CLICKHOUSE-3260]

This commit is contained in:
Vitaliy Lyudvichenko 2017-08-30 16:15:42 +03:00 committed by alexey-milovidov
parent 0fa2606535
commit 478470e1f1

View File

@ -506,7 +506,8 @@ bool DDLWorker::tryExecuteQuery(const String & query, const DDLTask & task, Exec
try
{
executeQuery(istr, ostr, false, context, nullptr);
Context local_context(context);
executeQuery(istr, ostr, false, local_context, nullptr);
}
catch (...)
{