Bug #89056 Status var name documentation wrong for plugins
Submitted: 26 Dec 2017 11:03 Modified: 20 Jan 2018 15:31
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:5.7.20 OS:Any
Assigned to: CPU Architecture:Any
Tags: plugin

[26 Dec 2017 11:03] Daniël van Eeden
Description:
Page: https://dev.mysql.com/doc/refman/5.7/en/plugin-data-structures.html#plugin-status-system-v...

"When the plugin is installed, the plugin name and the name value are joined with an underscore to form the name displayed by SHOW STATUS."

And in storage/example/ha_example.cc:
plugin name = 'EXAMPLE'
status variable name = 'example_status_var6'

Then the final name of the status variable should be 'example_example_status_var6'.
However that's not the case.

So it looks like status_vars use '<variable_name>' and system_vars use '<plugin_name>_<variable_name>'.

How to repeat:
Check source code of various plugins.

Suggested fix:
Update docs.
[2 Jan 2018 12:08] Georgi Kodinov
Indeed this is done only for the system variables and not for the status ones.
[8 Jan 2018 12:55] MySQL Verification Team
Thanks for the report, you are right, documentation needs to be amended.

all best
Bogdan
[20 Jan 2018 15:31] Paul DuBois
Posted by developer:
 
Removed erroneous statement.