Skip to content

Commit

Permalink
This is an automated cherry-pick of #9700
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
GMHDBJD authored and ti-chi-bot committed Sep 8, 2023
1 parent 57673d9 commit f52fead
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dm/syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2852,9 +2852,23 @@ func (s *Syncer) trackOriginDDL(ev *replication.QueryEvent, ec eventContext) (ma
return nil, err
}

affectedTbls := make(map[string]map[string]struct{})
for _, sql := range qec.splitDDLs {
<<<<<<< HEAD

Check failure on line 2856 in dm/syncer/syncer.go

View workflow job for this annotation

GitHub Actions / Make Check & Build (ubuntu-latest)

expected statement, found '<<'
ddlInfo, err := s.genDDLInfo(qec.p, qec.ddlSchema, sql)
=======
sqls, err := s.ddlWorker.processOneDDL(qec, sql)
if err != nil {
s.tctx.L().Warn("processOneDDL failed", zap.Error(err))
qec.appliedDDLs = append(qec.appliedDDLs, sql)
} else {
qec.appliedDDLs = append(qec.appliedDDLs, sqls...)
}
}

affectedTbls := make(map[string]map[string]struct{})
for _, sql := range qec.appliedDDLs {
ddlInfo, err := s.ddlWorker.genDDLInfo(qec, sql)
>>>>>>> 2e8893a67c (dm: track table schema for online ddl when use binlog skip (#9700))

Check failure on line 2871 in dm/syncer/syncer.go

View workflow job for this annotation

GitHub Actions / Make Check & Build (ubuntu-latest)

expected statement, found '>>'

Check failure on line 2871 in dm/syncer/syncer.go

View workflow job for this annotation

GitHub Actions / Make Check & Build (ubuntu-latest)

illegal character U+0023 '#'
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f52fead

Please sign in to comment.