[MDEV-31807] START SLAVE ,,,,,, is accepted as valid syntax Created: 2023-07-31 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.11.4 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | markus makela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The same also seems to apply to STOP SLAVE. Looking at the code, we see that the syntax for it is defined as follows:
I believe the empty value should be in slave_thread_opt_list and not in slave_thread_opt; this way an empty value or a list of SQL or IO thread variables is accepted. |
| Comments |
| Comment by Kristian Nielsen [ 2023-07-31 ] |
|
Agree that this was probably not intended. But I'd suggest to not change it. It doesn't seem to hurt anything, and it only risks breaking some odd script out there that accidentally ended up with an extra comma. |
| Comment by markus makela [ 2023-07-31 ] |
|
Yes, this is the definition of a cosmetic issue. Perhaps mentioning it in the documentation for the START SLAVE command is enough as a fix. |