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
modify the lock
bluefoxahc67aee701270
diff --git a/go/util/concurrent_read_map.go b/go/util/concurrent_read_map.goindex 41cce8b82e..ca1109f224 100644--- a/go/util/concurrent_read_map.go+++ b/go/util/concurrent_read_map.go@@ -8,7 +8,6 @@ import (// initialize the map entries.type ConcurrentReadMap struct {rmutex sync.RWMutex- mutex sync.MutexItems map[string]interface{}}@@ -17,8 +16,8 @@ func NewConcurrentReadMap() *ConcurrentReadMap {}func (m *ConcurrentReadMap) initMapEntry(key string, newEntry func() interface{}) (value interface{}) {- m.mutex.Lock()- defer m.mutex.Unlock()+ m.rmutex.Lock()+ defer m.rmutex.Unlock()if value, ok := m.Items[key]; ok {return value}