[MDEV-24324] Having an active XA transaction in THD:cleanup will release MDL locks too early. Created: 2020-12-01 Updated: 2020-12-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | XA |
| Affects Version/s: | 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Widenius | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
After the fix of
In this case the 10.4 code will in THD::cleanup() call The effect will be as in We can't ignore calling release_transactional_locks() in One suggested fix is to move the transactional locks from THD to the transaction In case of server restart, we have to also recover the MDL locks for any |