SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
rename function
Chris Luc6a0704019f8
diff --git a/weed/s3api/filer_util.go b/weed/s3api/filer_util.goindex 72df337a59..b6ac52c80b 100644--- a/weed/s3api/filer_util.go+++ b/weed/s3api/filer_util.go@@ -76,7 +76,7 @@ func (s3a *S3ApiServer) exists(parentDirectoryPath string, entryName string, isD}-func (s3a *S3ApiServer) get(parentDirectoryPath, entryName string) (entry *filer_pb.Entry, err error) {+func (s3a *S3ApiServer) getEntry(parentDirectoryPath, entryName string) (entry *filer_pb.Entry, err error) {fullPath := util.NewFullPath(parentDirectoryPath, entryName)return filer_pb.GetEntry(s3a, fullPath)}diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.goindex 6b2ed8ef2c..ad50e7cca7 100644--- a/weed/s3api/s3api_bucket_handlers.go+++ b/weed/s3api/s3api_bucket_handlers.go@@ -120,7 +120,7 @@ func (s3a *S3ApiServer) DeleteBucketHandler(w http.ResponseWriter, r *http.Requebucket, _ := getBucketAndObject(r)- entry, err := s3a.get(s3a.option.BucketsPath, bucket)+ entry, err := s3a.getEntry(s3a.option.BucketsPath, bucket)if entry == nil || err == filer_pb.ErrNotFound {writeErrorResponse(w, s3err.ErrNoSuchBucket, r.URL)return@@ -164,8 +164,8 @@ func (s3a *S3ApiServer) HeadBucketHandler(w http.ResponseWriter, r *http.Requestbucket, _ := getBucketAndObject(r)- entry, err := s3a.get(s3a.option.BucketsPath, bucket)if entry == nil || err != nil {+ entry, err := s3a.getEntry(s3a.option.BucketsPath, bucket)writeErrorResponse(w, s3err.ErrNoSuchBucket, r.URL)return}