mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 11:37:56 +08:00
ec shard delete also check ec volumes, in addition to volumes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user