[MDEV-27730] Add PLUGIN_VAR_DEPRECATED flag to plugin variables Created: 2022-02-02 Updated: 2023-11-30 Resolved: 2022-02-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Fix Version/s: | 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3 |
| Type: | Task | Priority: | Critical |
| Reporter: | Alexey Botchkov | Assignee: | Nayuta Yanagisawa (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The sys_var class has the deprecation_substitute member to mark the deprecated variables. As it's set the server produces warnings when these variables are used. However, the plugin has no means to utilize that functionality. So the PLUGIN_VAR_DEPRECATED flag is proposed to set that deprecation_substitute with the empty string. A non-empty string can make the warning more informative, but there's no nice way seen to specify it, and not that needed at the moment. |
| Comments |
| Comment by Nayuta Yanagisawa (Inactive) [ 2022-02-15 ] |
|
holyfoot Please review https://github.com/MariaDB/server/commit/2a55054243d81d98d5fe6b44b7882ef6fd331659 |
| Comment by Alexey Botchkov [ 2022-02-17 ] |
|
Ok to push. |