[MDEV-21115] CHANGE MASTER TO MASTER_DELAY = XXX only accepts a numeric value not an experession Created: 2019-11-21 Updated: 2020-01-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Simon Mudd | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 10.3.15 | ||
| Description |
|
Seen on 10.3.15. Maybe not a big thing but it is somewhat surprising. I could not set the replication delay using MASTER_DELAY = xxx with an expression. It has to be a numeric value. The docs do say this but usually where a numeric value is allowed an expression can be used. In this particular case I wanted to set a 24 hour delay which is easy to express as 24 * 60 * 60, but that did not work. Suggestion would be to allow for a numeric expression and then use the value that is derived from that as now. |
| Comments |
| Comment by Simon Mudd [ 2019-11-21 ] |
|
Use of the following syntax failed for me: root@host [(none)]> change master to master_delay = 24 * 60 * 60; root@host [(none)]> change master to master_delay = ( 24 * 60 * 60 ); This works (as documented): root@host [(none)]> stop slave; change master to master_delay = 86400; So maybe it's just a master of modifying the syntax that's handled here and allowing for a numeric expression to be accepted. |