summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2006-04-16 13:08:14 -0700
committerunknown <brian@zim.(none)>2006-04-16 13:08:14 -0700
commitfea1551653857017ec3dfbb00ed15ed384c9afee (patch)
tree71f1e1467f622c0151ee22b2810d0f0e0b650865 /sql/sql_plugin.cc
parent689d589434a9ac8d8051b43557a77522068f0007 (diff)
downloadmariadb-git-fea1551653857017ec3dfbb00ed15ed384c9afee.tar.gz
Adding back support for loadable engines.
sql/sql_plugin.cc: Adding back in support for loadable engines.
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 3d42bfea104..b4e42dc4700 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -529,8 +529,16 @@ static int plugin_initialize(struct st_plugin_int *plugin)
switch (plugin->plugin->type)
{
case MYSQL_STORAGE_ENGINE_PLUGIN:
- sql_print_error("Storage Engine plugins are unsupported in this version.");
- goto err;
+ if (ha_initialize_handlerton((handlerton*) plugin->plugin->info))
+ {
+ sql_print_error("Plugin '%s' handlerton init returned error.",
+ plugin->name.str);
+ DBUG_PRINT("warning", ("Plugin '%s' handlerton init returned error.",
+ plugin->name.str));
+ goto err;
+ }
+ break;
+
default:
break;
}