服务切换集群后,直接删除老的域名记录

This commit is contained in:
刘祥超
2022-04-18 18:21:29 +08:00
parent c4ca2521ee
commit ea09ef3d91
3 changed files with 74 additions and 16 deletions

View File

@@ -74,8 +74,8 @@ func (this *DNSTaskDAO) CreateNodeTask(tx *dbs.Tx, nodeId int64, taskType DNSTas
}
// CreateServerTask 生成服务任务
func (this *DNSTaskDAO) CreateServerTask(tx *dbs.Tx, serverId int64, taskType DNSTaskType) error {
return this.CreateDNSTask(tx, 0, serverId, 0, 0, taskType)
func (this *DNSTaskDAO) CreateServerTask(tx *dbs.Tx, clusterId int64, serverId int64, taskType DNSTaskType) error {
return this.CreateDNSTask(tx, clusterId, serverId, 0, 0, taskType)
}
// CreateDomainTask 生成域名更新任务