[MDEV-23805] Make Online DDL to Instant DDL when table is empty Created: 2020-09-24 Updated: 2022-02-28 Resolved: 2021-11-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.8.0, 10.4.23, 10.5.14, 10.6.6, 10.7.2 |
| Type: | Task | Priority: | Major |
| Reporter: | Thirunarayanan Balathandayuthapani | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
During prepare phase ha_innobase::prepare_inplace_alter_table() can check whether the table is empty and if it is then it can take S-lock on the |
| Comments |
| Comment by Matthias Leich [ 2021-11-11 ] |
|
bb-10.6- |
| Comment by Marko Mäkelä [ 2021-11-17 ] |
|
This simplification of locking may have made redundant the fixes of the race conditions |