1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-26 04:18:59 +02:00

mount: fix truncate operation

fix https://github.com/seaweedfs/seaweedfs/issues/2609
This commit is contained in:
chrislu 2022-08-06 13:58:45 -07:00
parent e134570a9c
commit 8a880a139d

View file

@ -68,6 +68,8 @@ func (wfs *WFS) SetAttr(cancel <-chan struct{}, input *fuse.SetAttrIn, out *fuse
glog.V(4).Infof("truncated whole chunk %+v\n", chunk.GetFileIdString())
truncatedChunks = append(truncatedChunks, chunk)
}
} else {
chunks = append(chunks, chunk)
}
}
// set the new chunks and reset entry cache