controller: volume: don't need to avoid updating engine's ReplicaAddressMap due to upgrade
We avoided to update engine's ReplicaAddressMap since we originally
will override it with UpgradedReplicaAddressMap. But now since we use
`CurrentReplicaAddressMap` for checking which address map we're using,
we no longer need the an extra check here.
@@ -923,12 +923,10 @@ func (vc *VolumeController) ReconcileVolumeState(v *longhorn.Volume, e *longhorn
e.Spec.DisableFrontend = v.Status.FrontendDisabled
engineUpdated = true
}
- if !vc.isVolumeUpgrading(v) {
if !reflect.DeepEqual(e.Spec.ReplicaAddressMap, replicaAddressMap) {
e.Spec.ReplicaAddressMap = replicaAddressMap
engineUpdated = true
}
- }
if engineUpdated {
e, err = vc.ds.UpdateEngine(e)
if err != nil {
