Skip to content

Commit

Permalink
debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
GMHDBJD committed Sep 25, 2020
1 parent 6fb9d64 commit 614def3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dm/config/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ func checkDuplicateString(ruleNames []string) []string {

// AdjustTargetDBSessionCfg adjust session cfg of TiDB
func AdjustTargetDBSessionCfg(dbConfig *DBConfig, version utils.TiDBVersion) {
log.L().Info("in adjust target db session cfg")
lowerMap := make(map[string]string, len(dbConfig.Session))
for k, v := range dbConfig.Session {
lowerMap[strings.ToLower(k)] = v
Expand Down
2 changes: 2 additions & 0 deletions dm/master/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,7 @@ func adjustTargetDB(ctx context.Context, dbConfig *config.DBConfig) error {
cfg.Password = utils.DecryptOrPlaintext(cfg.Password)
}

log.L().Info("in adjust target db")
toDB, err := conn.DefaultDBProvider.Apply(cfg)
if err != nil {
return err
Expand All @@ -1266,6 +1267,7 @@ func adjustTargetDB(ctx context.Context, dbConfig *config.DBConfig) error {
toDB.Close()
return err
}
log.L().Info("get version: ", zap.String("tidb version", value))

version, err := utils.ToTiDBVersion(value)
// Do not adjust if not TiDB
Expand Down

0 comments on commit 614def3

Please sign in to comment.