mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix parent memory tracker during query detaching
This commit is contained in:
parent
114ea9b1eb
commit
0cccf3049a
@ -301,7 +301,7 @@ void ThreadStatus::detachQuery(bool exit_if_already_detached, bool thread_exits)
|
|||||||
memory_tracker.reset();
|
memory_tracker.reset();
|
||||||
|
|
||||||
/// Must reset pointer to thread_group's memory_tracker, because it will be destroyed two lines below.
|
/// Must reset pointer to thread_group's memory_tracker, because it will be destroyed two lines below.
|
||||||
memory_tracker.setParent(nullptr);
|
memory_tracker.setParent(thread_group->memory_tracker.getParent());
|
||||||
|
|
||||||
query_id.clear();
|
query_id.clear();
|
||||||
query_context = nullptr;
|
query_context = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user