Skip to content

Commit

Permalink
fix race
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jan 16, 2023
1 parent 4a6b89a commit b2dc99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ func (do *Domain) StartLoadStatsSubWorkers(ctxList []sessionctx.Context) {
for i, ctx := range ctxList {
statsHandle.StatsLoad.SubCtxs[i] = ctx
do.wg.Run(func() {
statsHandle.SubLoadWorker(ctx, do.exit)
statsHandle.SubLoadWorker(statsHandle.StatsLoad.SubCtxs[i], do.exit)
}, fmt.Sprintf("subLoadWorker_%v", i))
}
}
Expand Down

0 comments on commit b2dc99b

Please sign in to comment.