[MDEV-30814] RENAME tables locked with a write lock Created: 2023-03-08 Updated: 2023-03-30 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Ian Gilfillan | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | compat80 | ||
| Issue Links: |
|
||||||||
| Description |
|
In MySQL 8, it's possible to use RENAME on a table that is locked with a write lock. In MySQL 8, the following would work:
In MariaDB, this fails with:
See also https://stackoverflow.com/questions/36202298/renaming-a-locked-table |
| Comments |
| Comment by Sergei Golubchik [ 2023-03-30 ] | |
|
note that
succeeds (in 10.6 at least) and that makes the table unaccessible, "table t2 was not locked with lock tables" error. |