Browse Source

use storage_class for backend configuration

fix https://github.com/chrislusf/seaweedfs/issues/3008
pull/3020/head
chrislu 3 years ago
parent
commit
76148ce0f7
  1. 2
      weed/storage/backend/s3_backend/s3_backend.go

2
weed/storage/backend/s3_backend/s3_backend.go

@ -49,7 +49,7 @@ func newS3BackendStorage(configuration backend.StringProperties, configPrefix st
s.region = configuration.GetString(configPrefix + "region") s.region = configuration.GetString(configPrefix + "region")
s.bucket = configuration.GetString(configPrefix + "bucket") s.bucket = configuration.GetString(configPrefix + "bucket")
s.endpoint = configuration.GetString(configPrefix + "endpoint") s.endpoint = configuration.GetString(configPrefix + "endpoint")
s.storageClass = configuration.GetString(configPrefix + "storageClass")
s.storageClass = configuration.GetString(configPrefix + "storage_class")
if s.storageClass == "" { if s.storageClass == "" {
s.storageClass = "STANDARD_IA" s.storageClass = "STANDARD_IA"
} }

Loading…
Cancel
Save