Remove redundant

This commit is contained in:
kssenii 2021-10-11 08:17:22 +03:00
parent 448d63a0fc
commit 31d98b0992

View File

@ -211,8 +211,7 @@ std::unique_ptr<ReadBufferFromFileBase> DiskS3::readFile(const String & path, co
if (threadpool_read) if (threadpool_read)
{ {
auto reader = getThreadPoolReader(); auto reader = getThreadPoolReader();
auto buf = std::make_unique<AsynchronousReadIndirectBufferFromRemoteFS>(reader, read_settings.priority, std::move(s3_impl)); return std::make_unique<AsynchronousReadIndirectBufferFromRemoteFS>(reader, read_settings.priority, std::move(s3_impl));
return std::make_unique<SeekAvoidingReadBuffer>(std::move(buf), settings->min_bytes_for_seek);
} }
else else
{ {