mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-09-18 01:02:46 +02:00
parent
7eb8257126
commit
c531e2eb0e
1 changed files with 4 additions and 0 deletions
|
@ -195,6 +195,10 @@ func (l *DiskLocation) loadAllEcShards() (err 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]
|
||||
if !ok {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue