From 3e20336bdeacb10f4316126b3c54683c47f5c935 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 11 May 2022 00:44:35 -0700 Subject: [PATCH] fix atomic add int64 fix https://github.com/chrislusf/seaweedfs/issues/3038#issuecomment-1123269831 --- weed/storage/backend/s3_backend/s3_download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/backend/s3_backend/s3_download.go b/weed/storage/backend/s3_backend/s3_download.go index 224cbbc56..f0cdbefec 100644 --- a/weed/storage/backend/s3_backend/s3_download.go +++ b/weed/storage/backend/s3_backend/s3_download.go @@ -58,10 +58,10 @@ func downloadFromS3(sess s3iface.S3API, destFileName string, sourceBucket string // adapted from https://github.com/aws/aws-sdk-go/pull/1868 // and https://petersouter.xyz/s3-download-progress-bar-in-golang/ type s3DownloadProgressedWriter struct { - fp *os.File size int64 written int64 fn func(progressed int64, percentage float32) error + fp *os.File } func (w *s3DownloadProgressedWriter) WriteAt(p []byte, off int64) (int, error) {