aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-28 18:06:49 -0700
committerchrislu <chris.lu@gmail.com>2022-07-28 18:06:49 -0700
commit89e276de6410dc282657f9429db1b1acb7201130 (patch)
tree7a8f40e0807461e091c01896237bd70b039b057c
parenta458bee9f27e15450b9f9c2aa3a186737e4672e2 (diff)
downloadseaweedfs-89e276de6410dc282657f9429db1b1acb7201130.tar.xz
seaweedfs-89e276de6410dc282657f9429db1b1acb7201130.zip
fix loop
-rw-r--r--weed/mount/inode_to_path.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go
index f12121dd9..c287f4791 100644
--- a/weed/mount/inode_to_path.go
+++ b/weed/mount/inode_to_path.go
@@ -62,6 +62,7 @@ func (i *InodeToPath) EnsurePath(path util.FullPath, isDirectory bool) bool {
}
if i.EnsurePath(util.FullPath(dir), true) {
i.Lookup(path, time.Now().Unix(), isDirectory, false, 0, false)
+ return true
}
}
return false