diff --git a/statistics/handle/handle.go b/statistics/handle/handle.go index 15d90c6ed5204..16bf3bbcb7b7c 100644 --- a/statistics/handle/handle.go +++ b/statistics/handle/handle.go @@ -203,7 +203,6 @@ func NewHandle(ctx sessionctx.Context, lease time.Duration, pool sessionPool) (* pool: pool, } handle.lease.Store(lease) - handle.pool = pool handle.statsCache.memTracker = memory.NewTracker(memory.LabelForStatsCache, -1) handle.mu.ctx = ctx handle.mu.rateMap = make(errorRateDeltaMap)