diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-04 15:29:42 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2025-11-04 15:29:42 +0500 |
| commit | e8e080b4fad95e4575abfff38335e58043c2d6c8 (patch) | |
| tree | 26161bc16d4624ed8247a903bb859c062e720c28 | |
| parent | 6a0d1e0b6fdb89596f75371430b46417fefe1879 (diff) | |
| download | seaweedfs-e8e080b4fad95e4575abfff38335e58043c2d6c8.tar.xz seaweedfs-e8e080b4fad95e4575abfff38335e58043c2d6c8.zip | |
del unusing func removeExpiredObject
| -rw-r--r-- | weed/s3api/s3api_object_handlers.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go index b6c04dcd7..8917393be 100644 --- a/weed/s3api/s3api_object_handlers.go +++ b/weed/s3api/s3api_object_handlers.go @@ -18,7 +18,6 @@ import ( "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants" "github.com/seaweedfs/seaweedfs/weed/s3api/s3err" - "github.com/seaweedfs/seaweedfs/weed/util" "github.com/seaweedfs/seaweedfs/weed/util/mem" "github.com/seaweedfs/seaweedfs/weed/glog" @@ -88,13 +87,6 @@ func removeDuplicateSlashes(object string) string { } return result.String() } -func (s3a *S3ApiServer) removeExpiredObject(w http.ResponseWriter, r *http.Request, entry *filer_pb.Entry, bucket, object string) { - target := util.FullPath(fmt.Sprintf("%s/%s%s", s3a.option.BucketsPath, bucket, object)) - dir, name := target.DirAndName() - if rmErr := s3a.rm(dir, name, true, false); rmErr != nil { - glog.Errorf("delete expired entries %s/%s: %v", dir, name, rmErr) - } -} // checkDirectoryObject checks if the object is a directory object (ends with "/") and if it exists // Returns: (entry, isDirectoryObject, error) |
