From 7d9e6251b6084b64b1ab4d9339d9ade7f02ff69a Mon Sep 17 00:00:00 2001 From: xuyifan <675434007@qq.com> Date: Mon, 13 Dec 2021 21:41:11 +0800 Subject: [PATCH] remove reassignment of Handle.pool in NewHandle --- statistics/handle/handle.go | 1 - 1 file changed, 1 deletion(-) diff --git a/statistics/handle/handle.go b/statistics/handle/handle.go index 872cdc3daf16f..4038477a29bee 100644 --- a/statistics/handle/handle.go +++ b/statistics/handle/handle.go @@ -194,7 +194,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)