mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Merge pull request #58907 from ClickHouse/Avogar-patch-1
Fix possible crash in clickhouse-local during loading suggestions
This commit is contained in:
commit
90057c6f39
@ -290,6 +290,11 @@ void LocalServer::cleanup()
|
|||||||
{
|
{
|
||||||
connection.reset();
|
connection.reset();
|
||||||
|
|
||||||
|
/// Suggestions are loaded async in a separate thread and it can use global context.
|
||||||
|
/// We should reset it before resetting global_context.
|
||||||
|
if (suggest)
|
||||||
|
suggest.reset();
|
||||||
|
|
||||||
if (global_context)
|
if (global_context)
|
||||||
{
|
{
|
||||||
global_context->shutdown();
|
global_context->shutdown();
|
||||||
|
Loading…
Reference in New Issue
Block a user