summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2010-03-08 14:57:32 +0100
committerSergei Golubchik <sergii@pisem.net>2010-03-08 14:57:32 +0100
commitf0cf48a0c450d5cb4f3bd4f89a3e0b2135403e56 (patch)
treea791f95385841ce6ec0f66f1cfa6533461715415 /sql/handler.cc
parent81424b5bdaeb841a56519aa6994194c443b32478 (diff)
downloadmariadb-git-f0cf48a0c450d5cb4f3bd4f89a3e0b2135403e56.tar.gz
small code cleanup - "good ifdef is no ifdef"
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 198522f2e56..72c78727111 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -82,7 +82,7 @@ static plugin_ref ha_default_plugin(THD *thd)
{
if (thd->variables.table_plugin)
return thd->variables.table_plugin;
- return my_plugin_lock(thd, &global_system_variables.table_plugin);
+ return my_plugin_lock(thd, global_system_variables.table_plugin);
}
@@ -163,13 +163,8 @@ plugin_ref ha_lock_engine(THD *thd, handlerton *hton)
{
if (hton)
{
- st_plugin_int **plugin= hton2plugin + hton->slot;
-
-#ifdef DBUG_OFF
- return my_plugin_lock(thd, plugin);
-#else
- return my_plugin_lock(thd, &plugin);
-#endif
+ st_plugin_int *plugin= hton2plugin[hton->slot];
+ return my_plugin_lock(thd, plugin_int_to_ref(plugin));
}
return NULL;
}