-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PS-7923 Sort metadata locks acquired during ALTER TABLESPACE
https://jira.percona.com/browse/PS-7923 Problem: Metadata locks upgraded during ALTER TABLESPACE are upgraded in no particular order, which present deadlock possibility. Metadata deadlock prevention mechanism kicks in and rolls back an attachable transaction during data dictionary updates, which causes the server to terminate. Fix: Sort metadata lock requests before upgrade procedure. Move metadata lock upgrading routine to MDL_context class to reuse the sorting comparator.
- Loading branch information
Showing
3 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters