From 9fff08eac7501f61e28975a59864ef5de8fa0fde Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 29 Aug 2022 11:23:26 +0200 Subject: [PATCH] WriteBufferFromS3: remove unused ThreadGroupStatus Signed-off-by: Azat Khuzhin --- src/IO/WriteBufferFromS3.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/IO/WriteBufferFromS3.cpp b/src/IO/WriteBufferFromS3.cpp index 40e592ec197..2f2479766d5 100644 --- a/src/IO/WriteBufferFromS3.cpp +++ b/src/IO/WriteBufferFromS3.cpp @@ -86,10 +86,6 @@ void WriteBufferFromS3::nextImpl() size_t size = offset(); temporary_buffer->write(working_buffer.begin(), size); - ThreadGroupStatusPtr running_group = CurrentThread::isInitialized() && CurrentThread::get().getThreadGroup() - ? CurrentThread::get().getThreadGroup() - : MainThreadStatus::getInstance().getThreadGroup(); - ProfileEvents::increment(ProfileEvents::WriteBufferFromS3Bytes, offset()); last_part_size += offset(); if (write_settings.remote_throttler)