Fix update of SeaweedFS_volumeServer_volumes gauge metrics when EC shards are unmounted (#6776)
This commit is contained in:
@@ -111,7 +111,7 @@ func (ev *EcVolume) DeleteEcVolumeShard(shardId ShardId) (ecVolumeShard *EcVolum
|
||||
}
|
||||
|
||||
ecVolumeShard = ev.Shards[foundPosition]
|
||||
|
||||
ecVolumeShard.Unmount()
|
||||
ev.Shards = append(ev.Shards[:foundPosition], ev.Shards[foundPosition+1:]...)
|
||||
return ecVolumeShard, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user