From 4032d9e068b79d0bf4e399973d92d4fec8884eb0 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 31 Mar 2022 22:09:00 +0800 Subject: [PATCH] domain: use util.WaitGroupWrapper insteal of sync.WaitGroup Signed-off-by: Weizhen Wang --- statistics/handle/handle_hist.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/statistics/handle/handle_hist.go b/statistics/handle/handle_hist.go index e846c4568a57f..3c4f6f4aa8154 100644 --- a/statistics/handle/handle_hist.go +++ b/statistics/handle/handle_hist.go @@ -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))