Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

twaking

Chris Luee6952fddd02
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index ba870d73fa..d5c3cd85fa 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -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
}