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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
mount: clear possible leftover entry data in memory
Chris Lue1423a83dd9f
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex d29bc9b90b..a8481a4357 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -362,6 +362,14 @@ func (dir *Dir) removeOneFile(req *fuse.RemoveRequest) error {// then, delete meta cache and fsNode cachedir.wfs.metaCache.DeleteEntry(context.Background(), filePath)++ // clear entry inside the file+ fsNode := dir.wfs.fsNodeCache.GetFsNode(filePath)+ if fsNode != nil {+ if file, ok := fsNode.(*File); ok {+ file.clearEntry()+ }+ }dir.wfs.fsNodeCache.DeleteFsNode(filePath)// remove current file handle if any