1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

plugin_hton helper

This commit is contained in:
Sergei Golubchik
2013-06-15 19:09:47 +02:00
parent 935817e985
commit 8bc6aed491
8 changed files with 34 additions and 30 deletions

View File

@ -1210,6 +1210,11 @@ static inline LEX_STRING *hton_name(const handlerton *hton)
return &(hton2plugin[hton->slot]->name);
}
static inline handlerton *plugin_hton(plugin_ref plugin)
{
return plugin_data(plugin, handlerton *);
}
static inline sys_var *find_hton_sysvar(handlerton *hton, st_mysql_sys_var *var)
{
return find_plugin_sysvar(hton2plugin[hton->slot], var);