diff --git a/weed-fs/src/pkg/storage/needle_read_write.go b/weed-fs/src/pkg/storage/needle_read_write.go index be15b9d84..0b8b98c5b 100644 --- a/weed-fs/src/pkg/storage/needle_read_write.go +++ b/weed-fs/src/pkg/storage/needle_read_write.go @@ -30,7 +30,7 @@ func (n *Needle) Append(w io.Writer, version Version) uint32 { if n.NameSize > 0 { n.Size = n.Size + 1 + uint32(n.NameSize) } - if n.NameSize > 0 { + if n.MimeSize > 0 { n.Size = n.Size + 1 + uint32(n.MimeSize) } }