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
avoid close closed channel
Chris Luad652ffb97cf
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex 0304eebb4f..412d7e73f1 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -185,8 +185,10 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err}// stop the goroutine- fh.dirtyPages.chunkSaveErrChanClosed = true- close(fh.dirtyPages.chunkSaveErrChan)+ if !fh.dirtyPages.chunkSaveErrChanClosed {+ fh.dirtyPages.chunkSaveErrChanClosed = true+ close(fh.dirtyPages.chunkSaveErrChan)+ }return nil}