diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-13 11:14:09 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-13 11:14:09 -0800 |
| commit | de3eb7c3801ecb837fe70dab651600190f8b5dad (patch) | |
| tree | e812650e06c5b58c60bf34f809810c852c92c878 /weed/filesys/file.go | |
| parent | 357ea4b944545fa0c9efb732d70979d55159acc1 (diff) | |
| download | seaweedfs-de3eb7c3801ecb837fe70dab651600190f8b5dad.tar.xz seaweedfs-de3eb7c3801ecb837fe70dab651600190f8b5dad.zip | |
update cache if updating the attributes
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index 0a0090e3d..2d4be3c80 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -111,6 +111,8 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f return nil } + file.wfs.listDirectoryEntriesCache.Delete(file.fullpath()) + return file.wfs.WithFilerClient(ctx, func(client filer_pb.SeaweedFilerClient) error { request := &filer_pb.UpdateEntryRequest{ |
