[MDEV-21780] event_scheduler system variable's usage message doesn't mention the possible value "ORIGINAL" Created: 2020-02-19 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Events, Variables |
| Affects Version/s: | 10.1.44, 10.2.31, 10.3.22, 10.4.12 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The event_scheduler system variable supports the values: OFF, ON, DISABLED, and ORIGINAL. We can see that from the following code:
https://github.com/MariaDB/server/blob/mariadb-10.4.12/sql/sys_vars.cc#L1010 According to the source code, the value ORIGINAL means that the value should revert back to the startup state:
https://github.com/MariaDB/server/blob/mariadb-10.4.12/sql/sys_vars.cc#L1049 This can be easily confirmed by performing a simple test:
Unfortunately, the ORIGINAL value is not mentioned in the variable's usage message:
The usage message should be changed to mention this value, and it should describe what the value does. |
| Comments |
| Comment by Sergei Golubchik [ 2020-02-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
is it any different in behavior from DEFAULT? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2020-02-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi serg, Yes, the behavior of the ORIGINAL value is quite different from the behavior of the DEFAULT value. See the following example:
|