Skip to content

Commit

Permalink
refactor(dbm-services): 允许执行create table like TencentBlueKing#7199
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 30, 2024
1 parent fce8454 commit f594d40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dbm-services/common/dbha/ha-module/test/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestAgentNetTransfor(t *testing.T) {
case 3:
dbIns.App = "APP4444"
}
err = agentIns.ReporterGM(d)
err = agentIns.RepairGM(&gmInfo)
if err != nil {
t.Errorf("reporter gmInfo failed.err:%s", err.Error())
return
Expand Down
8 changes: 4 additions & 4 deletions dbm-services/mysql/db-simulation/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ type Response struct {

// CreateClusterParam 创建临时的spider的集群参数
type CreateClusterParam struct {
Pwd string `json:"pwd"`
PodName string `json:"podname"`
Pwd string `json:"pwd"`
PodName string `json:"podname"`
SpiderVersion string `json:"spider_version"`
}

// CreateTmpSpiderPodCluster 创建临时的spider的集群,多用于测试,debug
Expand All @@ -55,8 +56,7 @@ func CreateTmpSpiderPodCluster(r *gin.Context) {
Charset: "utf8mb4",
}
ps.DbImage = config.GAppConfig.Image.Tendb57Img
ps.TdbCtlImage = config.GAppConfig.Image.TdbCtlImg
ps.SpiderImage = config.GAppConfig.Image.SpiderImg
ps.TdbCtlImage, ps.SpiderImage = getSpiderAndTdbctlImg(param.SpiderVersion, LatestVersion)
if err := ps.CreateClusterPod(); err != nil {
logger.Error(err.Error())
return
Expand Down

0 comments on commit f594d40

Please sign in to comment.