"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
s3: fix corrupted on transfer: sizes differ 0 vs xxxx with Ceph
Nick Craig-Woodcf2c2792e62b
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 653dcfaae..b65fc086b 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -2892,14 +2892,12 @@ func (o *Object) readMetaData(ctx context.Context) (err error) {}func (o *Object) setMetaData(etag *string, contentLength *int64, lastModified *time.Time, meta map[string]*string, mimeType *string, storageClass *string) {- var size int64// Ignore missing Content-Length assuming it is 0// Some versions of ceph do this due their apache proxiesif contentLength != nil {- size = *contentLength+ o.bytes = *contentLength}o.setMD5FromEtag(aws.StringValue(etag))- o.bytes = sizeo.meta = metaif o.meta == nil {o.meta = map[string]*string{}