Browse Source

no need to set chunks during flush

pull/3942/merge
chrislu 2 years ago
parent
commit
efcffe4f77
  1. 2
      weed/mount/weedfs_file_sync.go

2
weed/mount/weedfs_file_sync.go

@ -152,8 +152,6 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {
manifestChunks, nonManifestChunks := filer.SeparateManifestChunks(entry.GetChunks())
chunks, _ := filer.CompactFileChunks(wfs.LookupFn(), nonManifestChunks)
fh.entryChunkGroup.SetChunks(chunks)
chunks, manifestErr := filer.MaybeManifestize(wfs.saveDataAsChunk(fileFullPath), chunks)
if manifestErr != nil {
// not good, but should be ok

Loading…
Cancel
Save