empty deleted file

This commit is contained in:
Chris Lu 2013-07-11 23:38:44 -07:00
parent b0e5112702
commit b87ec11c1c

View file

@ -232,6 +232,7 @@ func (v *Volume) delete(n *Needle) (uint32, error) {
if _, err = v.dataFile.Seek(int64(nv.Offset*NeedlePaddingSize), 0); err != nil {
return nv.Size, err
}
n.Data = make([]byte,0)
_, err = n.Append(v.dataFile, v.Version())
return nv.Size, err
}