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
Revert "Merge pull request #1683 from qieqieplus/master"
Chris Luf56e6d231e86
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.goindex 271a36ef73..6623c01113 100644--- a/weed/storage/disk_location.go+++ b/weed/storage/disk_location.go@@ -101,14 +101,12 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Ne}// avoid loading one volume more than once- l.volumesLock.Lock()- if _, found := l.volumes[vid]; found {- l.volumesLock.Unlock()+ l.volumesLock.RLock()+ _, found := l.volumes[vid]+ l.volumesLock.RUnlock()+ if found {glog.V(1).Infof("loaded volume, %v", vid)return true- } else {- l.volumes[vid] = nil- l.volumesLock.Unlock()}// load the volume