From 0d0805d67e3983d809ad91c6efbae34e68ab847e Mon Sep 17 00:00:00 2001 From: Yifan Xu <30385241+xuyifangreeneyes@users.noreply.github.com> Date: Wed, 15 Dec 2021 10:34:36 +0800 Subject: [PATCH] statistics: remove reassignment of Handle.pool in NewHandle (#30675) --- statistics/handle/handle.go | 1 - 1 file changed, 1 deletion(-) 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)