Bug #46698 Missing a description how to implement system/status variables in a plugin
Submitted: 13 Aug 2009 15:40 Modified: 15 Oct 2009 9:56
Reporter: Horst Hunger Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:azalea (5.4) OS:Any
Assigned to: MC Brown CPU Architecture:Any
Tags: documentation, forge, plugin, system variables

[13 Aug 2009 15:40] Horst Hunger
Description:
In the wiki documentation for how to use the plugin interface there is no description of how to implement system and status variables as it is e.g. done in example plugin. Also, the option(system variable) type SET needs one as ther exist no example. I mean to use macros like  MYSQL_SYSVAR_BOOL, and the necessry structures as they are used in example.
See
http://forge.mysql.com/wiki/MySQL_Internals_Custom_Engine#Implementing_the_info.28.29_Meth...

There is also no description in the user manual.

How to repeat:
look at the implementation of the test storage engine (tse) in mysql-azalea-wl4939, tse_system_variables.h and at bug#46586 or in the example storage engine..
[13 Aug 2009 18:06] MySQL Verification Team
Thank you for the bug report.
[3 Sep 2009 7:12] Horst Hunger
Changed the category (to doumantation) as the interanl documentation contains the isses, see also bug 47009.
[4 Sep 2009 13:30] Horst Hunger
Ther is a description abot hoe to implement system variables, so that maybe only a link needs to be inserted. See

http://forge.mysql.com/wiki/MySQL_Internals_Support_for_Plug-Ins
[15 Oct 2009 9:56] MC Brown
I've added a link to the plugin API notes on using the various macros.