mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
twaking
This commit is contained in:
parent
f27a1abf1c
commit
ee6952fddd
|
@ -381,13 +381,13 @@ func (dir *Dir) maybeLoadEntry(ctx context.Context) error {
|
|||
if dir.entry == nil {
|
||||
parentDirPath, name := filer2.FullPath(dir.Path).DirAndName()
|
||||
entry, err := dir.wfs.maybeLoadEntry(ctx, parentDirPath, name)
|
||||
dir.entry = entry
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if dir.entry == nil {
|
||||
if entry == nil {
|
||||
return fuse.ENOENT
|
||||
}
|
||||
dir.entry = entry
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue