Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Aug 1, 2021
1 parent 35f804f commit 530f87d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cdc/processor/pipeline/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ func (n *sinkNode) flushSink(ctx pipeline.NodeContext, resolvedTs model.Ts) (err
}

func (n *sinkNode) emitEvent(ctx pipeline.NodeContext, event *model.PolymorphicEvent) error {
<<<<<<< HEAD
n.eventBuffer = append(n.eventBuffer, event)
=======
if event == nil || event.Row == nil {
return nil
}
Expand Down Expand Up @@ -173,7 +170,6 @@ func (n *sinkNode) emitEvent(ctx pipeline.NodeContext, event *model.PolymorphicE
n.eventBuffer = append(n.eventBuffer, event)
}

>>>>>>> f2526c1e (sink(refactor): Refine functions and improve event splitting code (#2367))
if len(n.eventBuffer) >= defaultSyncResolvedBatch {
if err := n.flushRow2Sink(ctx); err != nil {
return errors.Trace(err)
Expand Down

0 comments on commit 530f87d

Please sign in to comment.