Browse Source

mount: mark directory uncached if forgotten

pull/2727/head
chrislu 3 years ago
parent
commit
aad62ee148
  1. 3
      weed/mount/inode_to_path.go

3
weed/mount/inode_to_path.go

@ -187,7 +187,8 @@ func (i *InodeToPath) Forget(inode, nlookup uint64, onForgetDir func(dir util.Fu
}
i.Unlock()
if found {
if path.isDirectory && onForgetDir != nil {
if path.isDirectory && path.nlookup <= 0 && onForgetDir != nil {
path.isChildrenCached = false
onForgetDir(path.FullPath)
}
}

Loading…
Cancel
Save