Browse Source

fix write error

pull/2/head
Chris Lu 12 years ago
parent
commit
315879ce47
  1. 2
      weed-fs/src/pkg/storage/needle_read_write.go

2
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)
}
}

Loading…
Cancel
Save