diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-05 23:20:26 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-05 23:20:26 -0700 |
| commit | d344e0a035985ce7a28a6f7a4499199ef27aeda3 (patch) | |
| tree | 77f094232aab9c2e767adb05f81c4e7a9453c2e2 /weed/storage/disk_location_ec.go | |
| parent | 450f4733cec38ec31c66b296749e2d0b14e91218 (diff) | |
| download | seaweedfs-d344e0a035985ce7a28a6f7a4499199ef27aeda3.tar.xz seaweedfs-d344e0a035985ce7a28a6f7a4499199ef27aeda3.zip | |
fix ec related bugs
Diffstat (limited to 'weed/storage/disk_location_ec.go')
| -rw-r--r-- | weed/storage/disk_location_ec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location_ec.go b/weed/storage/disk_location_ec.go index 7fb5351a4..ba0824c6d 100644 --- a/weed/storage/disk_location_ec.go +++ b/weed/storage/disk_location_ec.go @@ -87,8 +87,8 @@ func (l *DiskLocation) UnloadEcShard(vid needle.VolumeId, shardId erasure_coding if _, deleted := ecVolume.DeleteEcVolumeShard(shardId); deleted { if len(ecVolume.Shards) == 0 { delete(l.ecVolumes, vid) + ecVolume.Close() } - ecVolume.Close() return true } |
