mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
do not attach empty thread group
This commit is contained in:
parent
bc107c70fa
commit
da4f2bd923
@ -121,7 +121,7 @@ MemoryTracker::~MemoryTracker()
|
|||||||
|
|
||||||
String MemoryTracker::getDebugLog() const
|
String MemoryTracker::getDebugLog() const
|
||||||
{
|
{
|
||||||
return fmt::format("MemoryTracker(addr {} level {} peak {} ammount {})",
|
return fmt::format("MemoryTracker(addr {} level {} peak {} amount {})",
|
||||||
size_t(this),
|
size_t(this),
|
||||||
magic_enum::enum_name(level),
|
magic_enum::enum_name(level),
|
||||||
ReadableSize(getPeak()),
|
ReadableSize(getPeak()),
|
||||||
|
@ -28,7 +28,7 @@ ThreadGroupSwitcher::~ThreadGroupSwitcher()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
CurrentThread::detachGroup();
|
CurrentThread::detachGroup();
|
||||||
CurrentThread::attachTo(prev_thread_group);
|
CurrentThread::attachToGroup(prev_thread_group);
|
||||||
}
|
}
|
||||||
|
|
||||||
MergeListElement::MergeListElement(
|
MergeListElement::MergeListElement(
|
||||||
|
Loading…
Reference in New Issue
Block a user