节点因阈值切换到备用IP时保持在线状态

This commit is contained in:
刘祥超
2021-12-16 10:09:19 +08:00
parent 55034efa87
commit 7d82c3abf6
2 changed files with 24 additions and 0 deletions

View File

@@ -443,6 +443,7 @@ func (this *NodeIPAddressDAO) UpdateAddressBackupIP(tx *dbs.Tx, addressId int64,
return errors.New("invalid addressId")
}
var op = NewNodeIPAddressOperator()
op.IsUp = true // IP必须在线备用IP才会有用
op.Id = addressId
op.BackupThresholdId = thresholdId
op.BackupIP = ip