mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Fix error
This commit is contained in:
parent
e064171a68
commit
84f81c6185
@ -96,6 +96,10 @@ void Suggest::load(ContextPtr context, const ConnectionParameters & connection_p
|
||||
loading_thread = std::thread([my_context = Context::createCopy(context), connection_parameters, suggestion_limit, this]
|
||||
{
|
||||
ThreadStatus thread_status;
|
||||
my_context->makeQueryContext();
|
||||
auto group = ThreadGroup::createForQuery(my_context);
|
||||
CurrentThread::attachToGroup(group);
|
||||
|
||||
for (size_t retry = 0; retry < 10; ++retry)
|
||||
{
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user