Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <[email protected]>
  • Loading branch information
hicqu committed Sep 24, 2024
1 parent 71928ae commit ba00bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/processor/sourcemanager/engine/pebble/event_sorter.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ func (s *EventIter) Next() (event *model.PolymorphicEvent, pos engine.Position,
// If the current event is the last one, we need to set txnFinished
// Thus, we need to fetch the next event and compare the commitTs and startTs with it
for valid {
nextEvent := &model.PolymorphicEvent{}
if _, err = s.serde.Unmarshal(nextEvent, s.iter.Value()); err != nil {
event = &model.PolymorphicEvent{}
if _, err = s.serde.Unmarshal(event, s.iter.Value()); err != nil {
return
}

Expand Down

0 comments on commit ba00bdd

Please sign in to comment.