Fix sending a new request every 2 MB

This commit is contained in:
Michael Kolupaev 2024-03-26 08:53:13 +00:00
parent 1f0de3de64
commit 1fb902c5b7

View File

@ -574,7 +574,7 @@ off_t ReadWriteBufferFromHTTP::seek(off_t offset_, int whence)
if (impl)
{
auto position = getPosition();
if (offset_ > position)
if (offset_ >= position)
{
size_t diff = offset_ - position;
if (diff < read_settings.remote_read_min_bytes_for_seek)