aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/dir_rename.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-11 01:50:00 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-11 01:50:00 -0700
commit628b27ef3b4cf8c1c894430e0d40b0bc1de8ba96 (patch)
tree009480e6bddd1646fd1caa3caabdafd2a9a4eade /weed/filesys/dir_rename.go
parentb9365de47b04414e704cb62a3cfa9753e8c5ec0c (diff)
downloadseaweedfs-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.go9
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
}