This commit is contained in:
kssenii 2024-07-01 21:55:45 +02:00
parent 1e549751c7
commit d4312fe54b

View File

@ -4,7 +4,7 @@
#include <Interpreters/Context.h>
#include <IO/SwapHelper.h>
#include <IO/ReadBufferFromFile.h>
#include <IO/EmptyReadBuffer.h>
#include <IO/ReadBufferFromEmptyFile.h>
#include <base/scope_guard.h>
@ -134,7 +134,7 @@ std::unique_ptr<ReadBuffer> WriteBufferToFileSegment::getReadBufferImpl()
if (file_segment->getDownloadedSize() > 0)
return std::make_unique<ReadBufferFromFile>(file_segment->getPath());
else
return std::make_unique<EmptyReadBuffer>();
return std::make_unique<ReadBufferFromEmptyFile>();
}
}