mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-20 14:20:25 +08:00
parent
7eb8257126
commit
c531e2eb0e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user