diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-16 23:33:45 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-16 23:33:45 -0700 |
| commit | 0ccdb937bba225ac6c170e6f5f1d8a3065ff56a7 (patch) | |
| tree | 9997a33597d6fae916cdce5710d12fe839966828 /weed/filesys/dir_rename.go | |
| parent | b9a2efd69b1fc8a3fbab85038f3b03c6947f2c62 (diff) | |
| download | seaweedfs-0ccdb937bba225ac6c170e6f5f1d8a3065ff56a7.tar.xz seaweedfs-0ccdb937bba225ac6c170e6f5f1d8a3065ff56a7.zip | |
mount: fix renaming a deep directory with unvisited directories
Diffstat (limited to 'weed/filesys/dir_rename.go')
| -rw-r--r-- | weed/filesys/dir_rename.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index dd76577b0..ff65bccd2 100644 --- a/weed/filesys/dir_rename.go +++ b/weed/filesys/dir_rename.go @@ -131,7 +131,7 @@ func (dir *Dir) moveFolderSubEntries(ctx context.Context, oldParent util.FullPat glog.V(1).Infof("moving folder %s => %s", currentDirPath, newDirPath) var moveErr error - listErr := dir.wfs.metaCache.ListDirectoryEntries(ctx, currentDirPath, "", false, int64(math.MaxInt32), func(item *filer.Entry) bool { + listErr := dir.wfs.metaCache.ListDirectoryEntries(ctx, dir.wfs, currentDirPath, "", false, int64(math.MaxInt32), func(item *filer.Entry) bool { moveErr = dir.moveEntry(ctx, currentDirPath, item, newDirPath, item.Name()) if moveErr != nil { return false |
