mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Avoid segfaults and many other problems related with modifying global context in DDLWorker. [#CLICKHOUSE-3260]
This commit is contained in:
parent
0fa2606535
commit
478470e1f1
@ -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 (...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user