mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Avoid using query_id from old threads
This commit is contained in:
parent
1e83ebe521
commit
c78443d939
@ -197,6 +197,7 @@ void ThreadStatus::detachQuery(bool exit_if_already_detached, bool thread_exits)
|
||||
/// Must reset pointer to thread_group's memory_tracker, because it will be destroyed two lines below.
|
||||
memory_tracker.setParent(nullptr);
|
||||
|
||||
query_id.clear();
|
||||
query_context = nullptr;
|
||||
thread_group.reset();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user