Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Jul 1, 2022
1 parent eaaa7ab commit bc03cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/sink/flowcontrol/flow_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *TableFlowController) Consume(
commitTs := msg.CRTs
lastCommitTs := atomic.LoadUint64(&c.lastCommitTs)
blockingCallBack := func() (err error) {
if commitTs != lastCommitTs || c.splitTxn {
if commitTs > lastCommitTs || c.splitTxn {
// Call `callback` in two condition:
// 1. commitTs > lastCommitTs, handle new txn and send a normal resolved ts
// 2. commitTs == lastCommitTs && splitTxn = true, split the same txn and
Expand Down

0 comments on commit bc03cb1

Please sign in to comment.