diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-01 07:10:03 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-01 07:10:03 -0700 |
| commit | a1c01d716b2fd30fa4c99c65b88a814ef750e3e5 (patch) | |
| tree | 783baec04359d64919e240884a3b555a5d67f774 /weed/storage/disk_location.go | |
| parent | a34bad2cee0e87c59080405dfdc24e4bf37c89a1 (diff) | |
| download | seaweedfs-a1c01d716b2fd30fa4c99c65b88a814ef750e3e5.tar.xz seaweedfs-a1c01d716b2fd30fa4c99c65b88a814ef750e3e5.zip | |
volume: avoid deadlock when deleting volumes
fix https://github.com/chrislusf/seaweedfs/issues/1501
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index 9ecc57459..c309b3f92 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -174,9 +174,6 @@ func (l *DiskLocation) DeleteCollectionFromDiskLocation(collection string) (e er } func (l *DiskLocation) deleteVolumeById(vid needle.VolumeId) (found bool, e error) { - l.volumesLock.Lock() - defer l.volumesLock.Unlock() - v, ok := l.volumes[vid] if !ok { return |
