Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

s3: do not resize buf on put to memBuf

Michał Matczuk6893ce0bbf81
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index 79934a8d4..40e5cb43d 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -2306,7 +2306,7 @@ func (o *Object) uploadMultipart(ctx context.Context, req *s3.PutObjectInput, si
})
// return the memory and token
- memPool.Put(buf[:partSize])
+ memPool.Put(buf)
tokens.Put()
if err != nil {