summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 69b84657ad5..037c7763064 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1668,7 +1668,8 @@ static inline LEX_CSTRING *hton_name(const handlerton *hton)
static inline handlerton *plugin_hton(plugin_ref plugin)
{
- return plugin_data(plugin, handlerton *);
+ return
+ reinterpret_cast<st_mysql_storage_engine*>(plugin_decl(plugin)->info)->hton;
}
static inline sys_var *find_hton_sysvar(handlerton *hton, st_mysql_sys_var *var)