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 chunks by offset
chrislu2452f3b2f74d
diff --git a/weed/shell/command_fs_meta_cat.go b/weed/shell/command_fs_meta_cat.goindex 7ad1035a23..69eee6e01b 100644--- a/weed/shell/command_fs_meta_cat.go+++ b/weed/shell/command_fs_meta_cat.go@@ -5,6 +5,7 @@ import ("github.com/seaweedfs/seaweedfs/weed/filer""google.golang.org/protobuf/proto""io"+ "sort""github.com/seaweedfs/seaweedfs/weed/pb/filer_pb""github.com/seaweedfs/seaweedfs/weed/util"@@ -49,6 +50,11 @@ func (c *commandFsMetaCat) Do(args []string, commandEnv *CommandEnv, writer io.Wreturn err}+ chunks := respLookupEntry.Entry.Chunks+ sort.Slice(chunks, func(i, j int) bool {+ return chunks[i].Offset < chunks[j].Offset+ })+filer.ProtoToText(writer, respLookupEntry.Entry)bytes, _ := proto.Marshal(respLookupEntry.Entry)