Hi all,
I have created two INFORMATION_SCHEMA pseudo-tables for exporting
some InnoDB statistics. These tables are available to the SQL interpreter
when InnoDB is linked statically to MySQL, but not when it is loaded as
a dynamic plugin. Is this a known problem, or perhaps a bug in my code?
Here is how the tables are declared:
mysql_declare_plugin(innobase)
{
MYSQL_STORAGE_ENGINE_PLUGIN,
&innobase_storage_engine,
[...]
innobase_system_variables, /* system variables */
NULL /* reserved */
},
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&innobase_stat_zip,
"INNODB_ZIP",
"Innobase Oy",
"Statistics for the InnoDB compressed buffer pool",
PLUGIN_LICENSE_GPL,
innobase_stat_zip_init,
innobase_stat_zip_deinit,
0x0100 /* 1.0 */,
NULL, NULL, NULL
},
{
MYSQL_INFORMATION_SCHEMA_PLUGIN,
&innobase_stat_zip,
"INNODB_ZIP_RESET",
"Innobase Oy",
"Statistics for the InnoDB compressed buffer pool; reset cumulated counts",
PLUGIN_LICENSE_GPL,
innobase_stat_zip_reset_init,
innobase_stat_zip_deinit,
0x0100 /* 1.0 */,
NULL, NULL, NULL
}
mysql_declare_plugin_end;
This is based on the following 5.1 BitKeeper tree:
ChangeSet@stripped, 2007-05-08 11:16:41+02:00, jbruehe@stripped +1 -0
Raise version number after cloning 5.1.18-beta
ChangeSet@stripped, 2007-05-07 12:32:09-07:00, acurtis@stripped +6 -0
Merge xiphis.org:/home/antony/work2/mysql-5.1-engines
into xiphis.org:/home/antony/work2/mysql-5.1-merge
TAG: mysql-5.1.18
TAG: clone-5.1.18-build
MERGE: 1.2502.5.1
I could not see anything relevant in the change log since that revision
("bkf changes -R").
Best regards,
Marko