Skip to content

Commit

Permalink
fix(sink(ticdc)): fix dispatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxshuang committed Jan 16, 2022
1 parent 36e4685 commit ab62e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdc/sink/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,10 @@ func (s *mysqlSink) broadcastFinishTxn() {
}

func (s *mysqlSink) dispatchTableTxn(ctx context.Context, txn *model.SingleTableTxn) {
log.Info("dispatch single table txn", zap.Uint64("startTs", txn.RawTableTxn.StartTs), zap.Uint64("commitTs", txn.RawTableTxn.CommitTs))
// NOTICE: To some extend, causality dispatcher may affect other dispatcher due to the waitExec
workerIdx := s.txnDispatcher.Dispatch(&(txn.RawTableTxn))
if workerIdx > 0 {
if workerIdx >= 0 {
s.workers[workerIdx].appendTxn(ctx, txn)
return
}
Expand Down

0 comments on commit ab62e6b

Please sign in to comment.