diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-11 01:50:00 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-11 01:50:00 -0700 |
| commit | 628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96 (patch) | |
| tree | 009480e6bddd1646fd1caa3caabdafd2a9a4eade /weed/filesys/dir_rename.go | |
| parent | b9365de47b04414e704cb62a3cfa9753e8c5ec0c (diff) | |
| download | seaweedfs-628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96.tar.xz seaweedfs-628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96.zip | |
purge old cache implementation
Diffstat (limited to 'weed/filesys/dir_rename.go')
| -rw-r--r-- | weed/filesys/dir_rename.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index ea40f5c31..92d667c57 100644 --- a/weed/filesys/dir_rename.go +++ b/weed/filesys/dir_rename.go @@ -38,14 +38,5 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector }) - if err == nil { - dir.wfs.cacheDelete(newPath) - dir.wfs.cacheDelete(oldPath) - - // fmt.Printf("rename path: %v => %v\n", oldPath, newPath) - dir.wfs.fsNodeCache.Move(oldPath, newPath) - - } - return err } |
