summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorunknown <antony@ppcg5.local>2007-04-29 08:12:44 -0700
committerunknown <antony@ppcg5.local>2007-04-29 08:12:44 -0700
commit53015163679cf8c8a8c7f7b12cc4b72970f896a1 (patch)
tree94dff3959c46d95dcd40784d8698589c43e25c0a /sql/sql_plugin.cc
parent860217e5f40e373e40a68df5c1aab4e6892e3bfc (diff)
downloadmariadb-git-53015163679cf8c8a8c7f7b12cc4b72970f896a1.tar.gz
compile-dist failure
fix compile error when DBUG_OFF sql/sql_plugin.cc: fix compile error when DBUG_OFF
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 8423209e0b0..c0feff3f1ed 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -1151,9 +1151,13 @@ int plugin_init(int *argc, char **argv, int flags)
if (is_myisam)
{
DBUG_ASSERT(!global_system_variables.table_plugin);
+#ifdef DBUG_OFF
+ global_system_variables.table_plugin= plugin_ptr;
+#else
global_system_variables.table_plugin= (plugin_ref)
my_malloc(sizeof(plugin_ptr), MYF(MY_WME | MY_FAE));
global_system_variables.table_plugin[0]= plugin_ptr;
+#endif
plugin_ptr->ref_count++;
DBUG_ASSERT(plugin_ptr->ref_count == 1);
}