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
reduce possibility of nil file entry
Chris Lube9c7c21ecc0
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.goindex 10a0a2b449..ca826fbbc7 100644--- a/weed/filesys/dir.go+++ b/weed/filesys/dir.go@@ -389,12 +389,12 @@ func (dir *Dir) removeOneFile(req *fuse.RemoveRequest) error {// clear entry inside the filefsNode := dir.wfs.fsNodeCache.GetFsNode(filePath)+ dir.wfs.fsNodeCache.DeleteFsNode(filePath)if fsNode != nil {if file, ok := fsNode.(*File); ok {file.clearEntry()}}- dir.wfs.fsNodeCache.DeleteFsNode(filePath)// remove current file handle if anydir.wfs.handlesLock.Lock()