Skip to content

Commit

Permalink
processor: cancel all tables all at once (#2089) (#2094)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 17, 2021
1 parent ea86b2b commit d0c5faf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdc/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@ func (p *processor) doGCSchemaStorage() error {
func (p *processor) Close() error {
for _, tbl := range p.tables {
tbl.Cancel()
}
for _, tbl := range p.tables {
tbl.Wait()
}
p.cancel()
Expand Down

0 comments on commit d0c5faf

Please sign in to comment.