aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelee <eddy@gfxlabs.io>2022-02-27 04:50:59 -0600
committerelee <eddy@gfxlabs.io>2022-02-27 04:50:59 -0600
commit881a0fe8068cc197378967527663500161f2ff20 (patch)
tree131086801e6d9ca039cfa4b9cda9315c85cf6155
parent954ad98e0d0f2276f69afe2e5176e66c87aeb0ba (diff)
downloadseaweedfs-881a0fe8068cc197378967527663500161f2ff20.tar.xz
seaweedfs-881a0fe8068cc197378967527663500161f2ff20.zip
ensure compatibility
-rw-r--r--weed/replication/sink/s3sink/s3_write.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/replication/sink/s3sink/s3_write.go b/weed/replication/sink/s3sink/s3_write.go
index 07eb65271..7d8932fb0 100644
--- a/weed/replication/sink/s3sink/s3_write.go
+++ b/weed/replication/sink/s3sink/s3_write.go
@@ -38,7 +38,9 @@ func (s3sink *S3Sink) createMultipartUpload(key string, entry *filer_pb.Entry) (
Bucket: aws.String(s3sink.bucket),
Key: aws.String(key),
ContentType: aws.String(entry.Attributes.Mime),
- ACL: aws.String(s3sink.acl),
+ }
+ if s3sink.acl != "" {
+ input.ACL = aws.String(s3sink.acl)
}
result, err := s3sink.conn.CreateMultipartUpload(input)