purge old cache implementation

This commit is contained in:
Chris Lu
2020-06-11 01:50:00 -07:00
parent b9365de47b
commit 628b27ef3b
11 changed files with 47 additions and 471 deletions

View File

@@ -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
}