Skip to content

Commit

Permalink
Fix generation of syncpoint event (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyunyan authored Mar 11, 2025
1 parent 7185573 commit 6611498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/eventservice/event_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (c *eventBroker) checkAndSendHandshake(task scanTask) bool {
// We need call this function every time we send a event(whether dml/ddl/resolvedTs),
// thus to ensure the sync point event is in correct order for each dispatcher.
func (c *eventBroker) emitSyncPointEventIfNeeded(ts uint64, d *dispatcherStat, remoteID node.ID) {
if d.enableSyncPoint && ts > d.nextSyncPoint {
for d.enableSyncPoint && ts > d.nextSyncPoint {
// Send the sync point event.
syncPointEvent := newWrapSyncPointEvent(
remoteID,
Expand Down

0 comments on commit 6611498

Please sign in to comment.