修复删除节点时不能自动同步DNS的问题

This commit is contained in:
GoEdgeLab
2022-11-26 19:02:08 +08:00
parent 89e0d6bb65
commit 7e9a3f6aae
4 changed files with 26 additions and 13 deletions

View File

@@ -604,7 +604,7 @@ func (this *NodeIPAddressDAO) NotifyUpdate(tx *dbs.Tx, addressId int64) error {
var role = address.(*NodeIPAddress).Role
switch role {
case nodeconfigs.NodeRoleNode:
err = dns.SharedDNSTaskDAO.CreateNodeTask(tx, nodeId, dns.DNSTaskTypeNodeChange)
err = dns.SharedDNSTaskDAO.CreateNodeTask(tx, 0, nodeId, dns.DNSTaskTypeNodeChange)
if err != nil {
return err
}