aboutsummaryrefslogtreecommitdiff
path: root/weed/replication
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-25 17:34:29 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-25 17:34:29 -0700
commitc08ac536ed83ef2159a13ce826a249223272818f (patch)
tree3fa5a52c18c4caf743d31c7ce8195839436be7df /weed/replication
parent9bcf94b2b1b2e38165f027b7d45dcc78ca8c6981 (diff)
downloadseaweedfs-c08ac536ed83ef2159a13ce826a249223272818f.tar.xz
seaweedfs-c08ac536ed83ef2159a13ce826a249223272818f.zip
cloud drive: add support for Wasabi
* disable md5, sha256 checking to avoid reading one chunk twice * single threaded upload to avoid chunk swapping (to be enhanced later)
Diffstat (limited to 'weed/replication')
-rw-r--r--weed/replication/sink/s3sink/s3_sink.go1
-rw-r--r--weed/replication/sub/notification_aws_sqs.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/weed/replication/sink/s3sink/s3_sink.go b/weed/replication/sink/s3sink/s3_sink.go
index 6fbef31e9..81cb87a18 100644
--- a/weed/replication/sink/s3sink/s3_sink.go
+++ b/weed/replication/sink/s3sink/s3_sink.go
@@ -77,6 +77,7 @@ func (s3sink *S3Sink) initialize(awsAccessKeyId, awsSecretAccessKey, region, buc
Region: aws.String(s3sink.region),
Endpoint: aws.String(s3sink.endpoint),
S3ForcePathStyle: aws.Bool(true),
+ S3DisableContentMD5Validation: aws.Bool(true),
}
if awsAccessKeyId != "" && awsSecretAccessKey != "" {
config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "")
diff --git a/weed/replication/sub/notification_aws_sqs.go b/weed/replication/sub/notification_aws_sqs.go
index 642834c72..844aa023d 100644
--- a/weed/replication/sub/notification_aws_sqs.go
+++ b/weed/replication/sub/notification_aws_sqs.go
@@ -42,6 +42,7 @@ func (k *AwsSqsInput) initialize(awsAccessKeyId, awsSecretAccessKey, region, que
config := &aws.Config{
Region: aws.String(region),
+ S3DisableContentMD5Validation: aws.Bool(true),
}
if awsAccessKeyId != "" && awsSecretAccessKey != "" {
config.Credentials = credentials.NewStaticCredentials(awsAccessKeyId, awsSecretAccessKey, "")