Skip to content

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.

adjust comment

Chris Lu5956a8b05a78
diff --git a/weed/storage/needle/needle.go b/weed/storage/needle/needle.go
index 845ffdb24f..7443796a71 100644
--- a/weed/storage/needle/needle.go
+++ b/weed/storage/needle/needle.go
@@ -31,9 +31,9 @@ type Needle struct {
Data []byte `comment:"The actual file data"`
Flags byte `comment:"boolean flags"` //version2
NameSize uint8 //version2
- Name []byte `comment:"maximum 256 characters"` //version2
+ Name []byte `comment:"maximum 255 characters"` //version2
MimeSize uint8 //version2
- Mime []byte `comment:"maximum 256 characters"` //version2
+ Mime []byte `comment:"maximum 255 characters"` //version2
PairsSize uint16 //version2
Pairs []byte `comment:"additional name value pairs, json format, maximum 64kB"`
LastModified uint64 //only store LastModifiedBytesLength bytes, which is 5 bytes to disk