From 315879ce47cbc762eb4e689ac6d62614a546699f Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 21 Dec 2012 02:15:29 -0800 Subject: [PATCH] fix write error --- weed-fs/src/pkg/storage/needle_read_write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }