aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/inode_to_path.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-11-01 16:27:59 -0700
committerchrislu <chris.lu@gmail.com>2023-11-01 16:27:59 -0700
commit310eec9a9c1ad6fe3ab68dd7921ab9e9afb2e91e (patch)
treeb17e2c4c97c8cfdd7582ba8ab239dfffdb198f93 /weed/mount/inode_to_path.go
parent4bb3911fde1b73ef096dbe9d3a91a56c983d8c80 (diff)
downloadseaweedfs-310eec9a9c1ad6fe3ab68dd7921ab9e9afb2e91e.tar.xz
seaweedfs-310eec9a9c1ad6fe3ab68dd7921ab9e9afb2e91e.zip
skip if path changed
mitigate https://github.com/seaweedfs/seaweedfs/issues/4968
Diffstat (limited to 'weed/mount/inode_to_path.go')
-rw-r--r--weed/mount/inode_to_path.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go
index ffa2c4271..8c29ae085 100644
--- a/weed/mount/inode_to_path.go
+++ b/weed/mount/inode_to_path.go
@@ -150,7 +150,10 @@ func (i *InodeToPath) MarkChildrenCached(fullpath util.FullPath) {
defer i.RUnlock()
inode, found := i.path2inode[fullpath]
if !found {
- glog.Fatalf("MarkChildrenCached not found inode %v", fullpath)
+ // https://github.com/seaweedfs/seaweedfs/issues/4968
+ // glog.Fatalf("MarkChildrenCached not found inode %v", fullpath)
+ glog.Warningf("MarkChildrenCached not found inode %v", fullpath)
+ return
}
path, found := i.inode2path[inode]
path.isChildrenCached = true