Browse Source

adjust deletion ordering

pull/1445/head
Chris Lu 5 years ago
parent
commit
98175548c2
  1. 2
      weed/filesys/file.go

2
weed/filesys/file.go

@ -137,10 +137,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
}
}
}
file.wfs.deleteFileChunks(truncatedChunks)
file.entry.Chunks = chunks
file.entryViewCache = nil
file.reader = nil
file.wfs.deleteFileChunks(truncatedChunks)
}
file.entry.Attributes.FileSize = req.Size
file.dirtyMetadata = true

Loading…
Cancel
Save