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
refactor(s3): drop unused source path in copy ETag check
Chris Lud82b3a8d6a3a
diff --git a/weed/s3api/s3api_object_handlers_copy.go b/weed/s3api/s3api_object_handlers_copy.goindex 59338ac150..59534fb6da 100644--- a/weed/s3api/s3api_object_handlers_copy.go+++ b/weed/s3api/s3api_object_handlers_copy.go@@ -1296,10 +1296,9 @@ func (s3a *S3ApiServer) copyChunksForRange(entry *filer_pb.Entry, startOffset, e// validateConditionalCopyHeaders validates the conditional copy headers against the source entryfunc (s3a *S3ApiServer) validateConditionalCopyHeaders(r *http.Request, entry *filer_pb.Entry) s3err.ErrorCode {- // Calculate ETag for the source entry- srcPath := util.FullPath(fmt.Sprintf("%s/%s", r.URL.Path, entry.Name))+ // Calculate ETag for the source entry. ETagEntry derives the tag from the+ // chunks/Md5/remote-etag only, so no path is needed here.filerEntry := &filer.Entry{- FullPath: srcPath,Attr: filer.Attr{FileSize: entry.Attributes.FileSize,Mtime: time.Unix(entry.Attributes.Mtime, 0),