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.

properly clear out the file.entry

Chris Lu02dc51b1edc0
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 759e21b15d..293b09dcfc 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -96,7 +96,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
fsNode := wfs.fsNodeCache.GetFsNode(filePath)
if fsNode != nil {
if file, ok := fsNode.(*File); ok {
- file.entry = nil
+ file.setEntry(nil)
}
}
})