[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:
Blocks
blocks MDEV-27228 Deprecate Spider plugin variables tha... Stalled
Problem/Incident
causes MDEV-30332 PLUGIN_VAR_DEPRECATED fails to throw ... Closed
Relates
relates to MDEV-32917 Documentation - no easy way to determ... Closed

 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.

Generated at Thu Feb 08 09:55:08 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.