提供手动控制节点上下线的接口

This commit is contained in:
刘祥超
2021-02-24 19:26:59 +08:00
parent 3551927bee
commit ea8a3079a7
4 changed files with 43 additions and 9 deletions

View File

@@ -94,6 +94,7 @@ func (this *DNSTaskExecutor) Loop() error {
return nil
}
// 修改服务相关记录
func (this *DNSTaskExecutor) doServer(taskId int64, serverId int64) error {
var tx *dbs.Tx
@@ -208,6 +209,7 @@ func (this *DNSTaskExecutor) doServer(taskId int64, serverId int64) error {
return nil
}
// 修改节点相关记录
func (this *DNSTaskExecutor) doNode(taskId int64, nodeId int64) error {
isOk := false
defer func() {
@@ -245,6 +247,7 @@ func (this *DNSTaskExecutor) doNode(taskId int64, nodeId int64) error {
return nil
}
// 修改集群相关记录
func (this *DNSTaskExecutor) doCluster(taskId int64, clusterId int64) error {
isOk := false
defer func() {