From da4f2bd9232e5fa19a9d6b5e8119b5a9627af301 Mon Sep 17 00:00:00 2001 From: Sema Checherinda Date: Fri, 3 Mar 2023 15:21:53 +0100 Subject: [PATCH] do not attach empty thread group --- src/Common/MemoryTracker.cpp | 2 +- src/Storages/MergeTree/MergeList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/MemoryTracker.cpp b/src/Common/MemoryTracker.cpp index 4cfb7f764e5..16c0d1e9eb1 100644 --- a/src/Common/MemoryTracker.cpp +++ b/src/Common/MemoryTracker.cpp @@ -121,7 +121,7 @@ MemoryTracker::~MemoryTracker() String MemoryTracker::getDebugLog() const { - return fmt::format("MemoryTracker(addr {} level {} peak {} ammount {})", + return fmt::format("MemoryTracker(addr {} level {} peak {} amount {})", size_t(this), magic_enum::enum_name(level), ReadableSize(getPeak()), diff --git a/src/Storages/MergeTree/MergeList.cpp b/src/Storages/MergeTree/MergeList.cpp index 4705733bb80..a9c55495b4b 100644 --- a/src/Storages/MergeTree/MergeList.cpp +++ b/src/Storages/MergeTree/MergeList.cpp @@ -28,7 +28,7 @@ ThreadGroupSwitcher::~ThreadGroupSwitcher() return; CurrentThread::detachGroup(); - CurrentThread::attachTo(prev_thread_group); + CurrentThread::attachToGroup(prev_thread_group); } MergeListElement::MergeListElement(