[MDEV-18266] Changing an index comment unnecessarily rebuilds index Created: 2019-01-16 Updated: 2019-08-22 Resolved: 2019-07-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.1.4, 10.2.0, 10.3.0, 10.4.0 |
| Fix Version/s: | 10.4.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Eugene Kosov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | instant | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
MariaDB fails to optimize away DROP INDEX, ADD INDEX pairs if the index comment is being changed. This can be repeated with the example that was posted to
Ever since the
We only need the metadata (t1.frm file) to be updated. |
| Comments |
| Comment by Marko Mäkelä [ 2019-01-16 ] | |||||||||
|
This logically belongs under the | |||||||||
| Comment by Eugene Kosov (Inactive) [ 2019-07-10 ] | |||||||||
|
To reduce merging effort I'll fix it in 10.4. Also, I don't think we can just ignore comments in all storage engines as it could be used to pass some information to a storage engine. | |||||||||
| Comment by Marko Mäkelä [ 2019-08-22 ] | |||||||||
|
For the record, I just tested that MariaDB is not affected by a similar bug that was recently introduced in MySQL 5.7:
Because the SELECT returns 1, the table avoids the rebuild, as expected. |