"ui/app/templates/git@git.gitsec.cn:baidan/nomad.git" did not exist on "bc3c59c3e009f2572ac51f041d9b5c333fcc785c"
Unverified Commit b83dc003 authored by Weizhen Wang's avatar Weizhen Wang Committed by GitHub
Browse files

session: fix goleak in the sendBatchRequest (#31991)

close pingcap/tidb#31990
parent 93454da4
Showing with 3 additions and 1 deletion
+3 -1
......@@ -673,7 +673,9 @@ func (s *testPessimisticSuite) TestKillStopTTLManager(c *C) {
// This query should success rather than returning a ResolveLock error.
tk2.MustExec("update test_kill set c = c + 1 where id = 1")
succ = atomic.CompareAndSwapUint32(&sessVars.Killed, 1, 0)
c.Assert(succ, IsTrue)
tk.MustExec("rollback")
tk2.MustExec("rollback")
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment