From efcffe4f77ccbabdb3478eae412bcf906d18971d Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 10 Jan 2023 10:01:52 -0800 Subject: [PATCH] no need to set chunks during flush --- weed/mount/weedfs_file_sync.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/weed/mount/weedfs_file_sync.go b/weed/mount/weedfs_file_sync.go index e830a4210..8b67f85c1 100644 --- a/weed/mount/weedfs_file_sync.go +++ b/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