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
store/tikv: support single statement rollback for pessimistic transaction #10654
What problem does this PR solve?
In a pessimistic transaction, a single statement should never cause a deadlock, but current implementation cannot guarantee it.
What is changed and how it works?
Detect if the deadlock key hash is in the keys of the current statement.
@@ Coverage Diff @@ ## master #10654 +/- ## =========================================== Coverage ? 78.3608% =========================================== Files ? 414 Lines ? 87836 Branches ? 0 =========================================== Hits ? 68829 Misses ? 13871 Partials ? 5136