coffeecloudgit
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
weed/storage/disk_location_ec.go
|
@ -195,6 +195,10 @@ func (l *DiskLocation) loadAllEcShards() (err error) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (l *DiskLocation) deleteEcVolumeById(vid needle.VolumeId) (e error) { |
|
|
func (l *DiskLocation) deleteEcVolumeById(vid needle.VolumeId) (e error) { |
|
|
|
|
|
// Add write lock since we're modifying the ecVolumes map
|
|
|
|
|
|
l.ecVolumesLock.Lock() |
|
|
|
|
|
defer l.ecVolumesLock.Unlock() |
|
|
|
|
|
|
|
|
ecVolume, ok := l.ecVolumes[vid] |
|
|
ecVolume, ok := l.ecVolumes[vid] |
|
|
if !ok { |
|
|
if !ok { |
|
|
return |
|
|
return |
|
|