Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
lock: add delay clean table lock when session close #11038
What problem does this PR solve?
It is used for
Before This PR:
The logic of
The problem is, What if the session was closed by unexpected between step 3 and 4, It will cause some problem.
TiFlash need to delayed release table lock before do commit.
What is changed and how it works?
@@ Coverage Diff @@ ## master #11038 +/- ## ================================================ - Coverage 81.0145% 80.9561% -0.0585% ================================================ Files 419 419 Lines 89732 89336 -396 ================================================ - Hits 72696 72323 -373 - Misses 11773 11778 +5 + Partials 5263 5235 -28