multipart support etag and pre-read small objects (#20423)

This commit is contained in:
Harshavardhana
2024-09-12 05:24:04 -07:00
committed by GitHub
parent 15ab0808b3
commit c28a4beeb7
4 changed files with 119 additions and 34 deletions

View File

@@ -711,6 +711,8 @@ func (er erasureObjects) PutObjectPart(ctx context.Context, bucket, object, uplo
switch {
case compressed:
// ... nothing changes for compressed stream.
// if actualSize is -1 we have no known way to
// determine what is the actualSize.
case encrypted:
decSize, err := sio.DecryptedSize(uint64(n))
if err == nil {