Revert "mount: fix renaming a deep directory with unvisited directories"

This reverts commit 0ccdb937bb.
This commit is contained in:
Chris Lu
2021-10-16 23:52:30 -07:00
parent 8e2c9713a3
commit 93bb7869b8
3 changed files with 5 additions and 8 deletions

View File

@@ -352,7 +352,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {
glog.Errorf("dir ReadDirAll %s: %v", dirPath, err)
return nil, fuse.EIO
}
listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), dir.wfs, dirPath, "", false, int64(math.MaxInt32), func(entry *filer.Entry) bool {
listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), dirPath, "", false, int64(math.MaxInt32), func(entry *filer.Entry) bool {
processEachEntryFn(entry, false)
return true
})