[MDEV-7817] ALTER TABLE {ADD|DROP} INDEX IF [NOT] EXISTS does not get written into binlog if nothing to do Created: 2015-03-23 Updated: 2015-10-06 Resolved: 2015-10-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | verified | ||
| Description |
|
I add this code into an mtr test:
and see this output:
Notice, these queries do get logged even if nothing to do:
Unlike the above, these queries do not get logged if nothing todo:
|
| Comments |
| Comment by Daniel Black [ 2015-06-23 ] |
|
this might have been introduced in |
| Comment by Alexey Botchkov [ 2015-10-05 ] |
|
proposed patch: http://lists.askmonty.org/pipermail/commits/2015-October/008483.html |
| Comment by Alexander Barkov [ 2015-10-05 ] |
|
|
| Comment by Alexey Botchkov [ 2015-10-06 ] |
|
I belive that can be fixed in 10.0 similarly. |