mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 16:30:44 +01:00
get, set and add path conf
This commit is contained in:
1 parent
96af571219
commit
aed2a18223
3 files changed
+25
-3
No files matched your search
@@ -455,7 +455,11 @@ func (s3a *S3ApiServer) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *h
|
||||
for prefix, ttl := range collectionTtls {
|
||||
bucketPrefix := fmt.Sprintf("%s/%s/", s3a.option.BucketsPath, bucket)
|
||||
if strings.HasPrefix(prefix, bucketPrefix) && strings.HasSuffix(ttl, "d") {
|
||||
fc.DeleteLocationConf(prefix)
|
||||
pathConf, found := fc.GetLocationConf(prefix)
|
||||
if found {
|
||||
pathConf.Ttl = ""
|
||||
fc.SetLocationConf(pathConf)
|
||||
}
|
||||
changed = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user