Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
add jobWg.wait
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXiangUSTC committed Jan 14, 2020
1 parent 92ede5b commit 20cfd53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ func (s *Syncer) Run(ctx context.Context) (err error) {
err = terror.ErrSyncerUnitPanic.Generate(err1)
}

s.jobWg.Wait()
if err2 := s.flushCheckPoints(); err2 != nil {
s.tctx.L().Warn("fail to flush check points when exit task", zap.Error(err2))
}
Expand Down

0 comments on commit 20cfd53

Please sign in to comment.