use storage_class for backend configuration

fix https://github.com/chrislusf/seaweedfs/issues/3008
This commit is contained in:
chrislu 2022-05-02 12:20:01 -07:00
parent 73961e24d8
commit 76148ce0f7

View file

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