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
minor
chrislua85ed3fe8fe8
diff --git a/weed/filer/filechunks.go b/weed/filer/filechunks.goindex 5a600a1881..4c732ddcda 100644--- a/weed/filer/filechunks.go+++ b/weed/filer/filechunks.go@@ -52,11 +52,11 @@ func ETagChunks(chunks []*filer_pb.FileChunk) (etag string) {if len(chunks) == 1 {return fmt.Sprintf("%x", util.Base64Md5ToBytes(chunks[0].ETag))}- md5_digests := [][]byte{}+ var md5Digests [][]bytefor _, c := range chunks {- md5_digests = append(md5_digests, util.Base64Md5ToBytes(c.ETag))+ md5Digests = append(md5Digests, util.Base64Md5ToBytes(c.ETag))}- return fmt.Sprintf("%x-%d", util.Md5(bytes.Join(md5_digests, nil)), len(chunks))+ return fmt.Sprintf("%x-%d", util.Md5(bytes.Join(md5Digests, nil)), len(chunks))}func CompactFileChunks(lookupFileIdFn wdclient.LookupFileIdFunctionType, chunks []*filer_pb.FileChunk) (compacted, garbage []*filer_pb.FileChunk) {