Skip to content

Commit

Permalink
domain: use util.WaitGroupWrapper insteal of sync.WaitGroup
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Mar 31, 2022
1 parent b7d3cd7 commit 4032d9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions statistics/handle/handle_hist.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ type StatsReaderContext struct {
}

// SubLoadWorker loads hist data for each column
func (h *Handle) SubLoadWorker(ctx sessionctx.Context, exit chan struct{}, exitWg *sync.WaitGroup) {
func (h *Handle) SubLoadWorker(ctx sessionctx.Context, exit chan struct{}) {
readerCtx := &StatsReaderContext{}
defer func() {
exitWg.Done()
logutil.BgLogger().Info("SubLoadWorker exited.")
if readerCtx.reader != nil {
err := h.releaseStatsReader(readerCtx.reader, ctx.(sqlexec.RestrictedSQLExecutor))
Expand Down

0 comments on commit 4032d9e

Please sign in to comment.