Browse Source

avoid fatal message in some edge cases

pull/2668/head
chrislu 3 years ago
parent
commit
6200b6abb1
  1. 3
      weed/mount/inode_to_path.go

3
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
}

|||||||
100:0
Loading…
Cancel
Save