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
fix MaxUint8
Chris Lu168f461761e7
diff --git a/weed/storage/needle_read_write.go b/weed/storage/needle_read_write.goindex 3b958a3421..34cf71dc22 100644--- a/weed/storage/needle_read_write.go+++ b/weed/storage/needle_read_write.go@@ -67,7 +67,7 @@ func (n *Needle) Append(w io.Writer, version Version) (size uint32, actualSize iCookieToBytes(header[0:CookieSize], n.Cookie)NeedleIdToBytes(header[CookieSize:CookieSize+NeedleIdSize], n.Id)if len(n.Name) >= math.MaxUint8 {- n.NameSize = math.MaxInt8+ n.NameSize = math.MaxUint8} else {n.NameSize = uint8(len(n.Name))}