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 fatal error: sync: Unlock of unlocked RWMutex
chrislu1451b389a4a7
diff --git a/weed/filer/reader_cache.go b/weed/filer/reader_cache.goindex c319f6c789..4c92f71c85 100644--- a/weed/filer/reader_cache.go+++ b/weed/filer/reader_cache.go@@ -18,7 +18,7 @@ type ReaderCache struct {}type SingleChunkCacher struct {- sync.RWMutex+ sync.Mutexcond *sync.Condparent *ReaderCachechunkFileId string@@ -183,8 +183,8 @@ func (s *SingleChunkCacher) destroy() {}func (s *SingleChunkCacher) readChunkAt(buf []byte, offset int64) (int, error) {- s.RLock()- defer s.RUnlock()+ s.Lock()+ defer s.Unlock()for s.completedTime.IsZero() {s.cond.Wait()