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
sort tags by key (#4047)
LHHDZbb289d7d69f2
diff --git a/weed/s3api/tags.go b/weed/s3api/tags.goindex 0fc32241f3..3df44fae0a 100644--- a/weed/s3api/tags.go+++ b/weed/s3api/tags.go@@ -5,6 +5,7 @@ import ("fmt""github.com/seaweedfs/seaweedfs/weed/util""regexp"+ "sort""strings")@@ -39,6 +40,11 @@ func FromTags(tags map[string]string) (t *Tagging) {Value: v,})}+ if tagArr := t.TagSet.Tag; len(tagArr) > 0 {+ sort.SliceStable(tagArr, func(i, j int) bool {+ return tagArr[i].Key < tagArr[j].Key+ })+ }return}