Skip to content

Commit

Permalink
新增阿里云rds判断
Browse files Browse the repository at this point in the history
  • Loading branch information
lazzyfu committed Dec 10, 2024
1 parent 0921752 commit b01bc25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goinsight/internal/orders/api/mysql/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ func (e *ExecuteMySQLDDL) ExecuteDDLWithGhost(sql string) (data base.ReturnData,
}

if strings.Contains(e.Hostname, "rds.aliyuncs.com") {
ghostCMDParts = append(ghostCMDParts, "--aliyun-rds=true")
ghostCMDParts = append(ghostCMDParts, fmt.Sprintf("--assume-master-host=%s", e.Hostname))
ghostCMDParts = append(ghostCMDParts, "-aliyun-rds=true")
ghostCMDParts = append(ghostCMDParts, fmt.Sprintf("-assume-master-host=\"%s\"", e.Hostname))
}

ghostCMD := strings.Join(ghostCMDParts, " ")
Expand Down

0 comments on commit b01bc25

Please sign in to comment.