avoid sendFile() for ranges or object lengths < 4MiB (#20141)

This commit is contained in:
Harshavardhana
2024-07-24 03:22:50 -07:00
committed by GitHub
parent b368d4cc13
commit 6fe2b3f901
3 changed files with 34 additions and 32 deletions

View File

@@ -2067,7 +2067,6 @@ func (s *xlStorage) ReadFileStream(ctx context.Context, volume, path string, off
return nil, err
}
}
return &sendFileReader{Reader: io.LimitReader(file, length), Closer: file}, nil
}