From 76838b262c7d99edc9f2e477eb8beef13e635659 Mon Sep 17 00:00:00 2001 From: cfzjywxk Date: Thu, 18 Mar 2021 12:03:44 +0800 Subject: [PATCH] remove the close --- store/tikv/2pc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/store/tikv/2pc.go b/store/tikv/2pc.go index e64b52cb0d22f..1ee8398576a2b 100644 --- a/store/tikv/2pc.go +++ b/store/tikv/2pc.go @@ -1171,7 +1171,6 @@ func (c *twoPhaseCommitter) execute(ctx context.Context) (err error) { zap.Uint64("startTS", c.startTS), zap.Uint64("commitTS", c.commitTS), zap.Uint64("sessionID", c.sessionID)) go func() { - defer c.ttlManager.close() failpoint.Inject("asyncCommitDoNothing", func() { failpoint.Return() })