server
server copied to clipboard
MDEV-33071 : MDL deadlock loop information
trafficstars
- [x] The Jira issue number for this PR is: MDEV-33071
Description
This feature provide MDL deadlock loop printing. Store the lock infomation when MDL deadlock is detected and print these infomation to logfile when user turn on the print switch. This can help tracing back the connection by thread id to check how the deadlock happened.
How can this PR be tested?
Provide test case mysql-test/main/print_mdl_deadlock.test to verify this feature
Basing the PR against the correct MariaDB version
- [ ] This is a new feature and the PR is based against the latest MariaDB development branch.
PR quality check
- [x] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.