mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #49527 from ClickHouse/thread-detach-fix
Fix thread MemoryTracker parent after detach
This commit is contained in:
commit
2104baabce
@ -223,7 +223,8 @@ void ThreadStatus::detachFromGroup()
|
||||
performance_counters.setParent(&ProfileEvents::global_counters);
|
||||
|
||||
memory_tracker.reset();
|
||||
memory_tracker.setParent(thread_group->memory_tracker.getParent());
|
||||
/// Extract MemoryTracker out from query and user context
|
||||
memory_tracker.setParent(&total_memory_tracker);
|
||||
|
||||
thread_group.reset();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user