aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-13 05:59:10 -0800
committerchrislu <chris.lu@gmail.com>2022-02-13 05:59:10 -0800
commit6200b6abb10eb2559166be8890718102ad8b4c1c (patch)
tree6b8a8cece5a2986d21906f95259019f1f3811ba3
parent6a921e15f350c3cedfe6331fab2297213ece89bd (diff)
downloadseaweedfs-6200b6abb10eb2559166be8890718102ad8b4c1c.tar.xz
seaweedfs-6200b6abb10eb2559166be8890718102ad8b4c1c.zip
avoid fatal message in some edge cases
-rw-r--r--weed/mount/inode_to_path.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/mount/inode_to_path.go b/weed/mount/inode_to_path.go
index 25e615ed6..84b952227 100644
--- a/weed/mount/inode_to_path.go
+++ b/weed/mount/inode_to_path.go
@@ -51,7 +51,8 @@ func (i *InodeToPath) GetInode(path util.FullPath) uint64 {
defer i.Unlock()
inode, found := i.path2inode[path]
if !found {
- glog.Fatalf("GetInode unknown inode %d", inode)
+ // glog.Fatalf("GetInode unknown inode for %s", path)
+ // this could be the parent for mount point
}
return inode
}