Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#5186
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
3AceShowHand authored and ti-chi-bot committed Apr 19, 2022
1 parent 4f714e1 commit e59ae27
Show file tree
Hide file tree
Showing 4 changed files with 515 additions and 13 deletions.
5 changes: 4 additions & 1 deletion cdc/owner/ddl_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,8 @@ func (s *ddlSinkImpl) close(ctx context.Context) (err error) {
err = s.syncPointStore.Close()
}
s.wg.Wait()
return err
if err != nil && errors.Cause(err) != context.Canceled {
return err
}
return nil
}
Loading

0 comments on commit e59ae27

Please sign in to comment.