Avoid using query_id from old threads

This commit is contained in:
Alexey Milovidov 2019-12-22 23:50:33 +03:00
parent 1e83ebe521
commit c78443d939

View File

@ -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();