WriteBufferFromS3: remove unused ThreadGroupStatus

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-08-29 11:23:26 +02:00
parent 269453a646
commit 9fff08eac7

View File

@ -86,10 +86,6 @@ void WriteBufferFromS3::nextImpl()
size_t size = offset(); size_t size = offset();
temporary_buffer->write(working_buffer.begin(), size); 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()); ProfileEvents::increment(ProfileEvents::WriteBufferFromS3Bytes, offset());
last_part_size += offset(); last_part_size += offset();
if (write_settings.remote_throttler) if (write_settings.remote_throttler)