aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location_ec.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-01 01:41:22 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-01 01:41:22 -0700
commitba18314aab2531ff6d7223cb2cf976dc01aaa735 (patch)
tree335f87f5bcd0b48168de0150cb5e7e9cec6554e6 /weed/storage/disk_location_ec.go
parentf919d0235cff244941e4e9f8c51bf89224d3d0ab (diff)
downloadseaweedfs-ba18314aab2531ff6d7223cb2cf976dc01aaa735.tar.xz
seaweedfs-ba18314aab2531ff6d7223cb2cf976dc01aaa735.zip
ec shard delete also check ec volumes, in addition to volumes
Diffstat (limited to 'weed/storage/disk_location_ec.go')
-rw-r--r--weed/storage/disk_location_ec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location_ec.go b/weed/storage/disk_location_ec.go
index ff72baf33..21f26e093 100644
--- a/weed/storage/disk_location_ec.go
+++ b/weed/storage/disk_location_ec.go
@@ -73,7 +73,7 @@ func (l *DiskLocation) UnloadEcShard(vid needle.VolumeId, shardId erasure_coding
if !found {
return false
}
- if deleted := ecVolume.DeleteEcVolumeShard(shardId); deleted {
+ if _, deleted := ecVolume.DeleteEcVolumeShard(shardId); deleted {
if len(ecVolume.Shards) == 0 {
delete(l.ecVolumes, vid)
}