|
@ -220,7 +220,7 @@ func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error { |
|
|
chunks, garbages := filer2.CompactFileChunks(fh.f.entry.Chunks) |
|
|
chunks, garbages := filer2.CompactFileChunks(fh.f.entry.Chunks) |
|
|
fh.f.entry.Chunks = chunks |
|
|
fh.f.entry.Chunks = chunks |
|
|
// fh.f.entryViewCache = nil
|
|
|
// fh.f.entryViewCache = nil
|
|
|
fh.f.wfs.asyncDeleteFileChunks(garbages) |
|
|
|
|
|
|
|
|
fh.f.wfs.deleteFileChunks(garbages) |
|
|
|
|
|
|
|
|
if _, err := client.CreateEntry(ctx, request); err != nil { |
|
|
if _, err := client.CreateEntry(ctx, request); err != nil { |
|
|
return fmt.Errorf("update fh: %v", err) |
|
|
return fmt.Errorf("update fh: %v", err) |
|
|