Skip to content

Commit

Permalink
processor: cancel all tables all at once (#2089) (#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 18, 2021
1 parent a534d31 commit 2e118a6
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 2e118a6

Please sign in to comment.