Commit 53015163 authored by unknown's avatar unknown

compile-dist failure

  fix compile error when DBUG_OFF


sql/sql_plugin.cc:
  fix compile error when DBUG_OFF
parent 860217e5
...@@ -1151,9 +1151,13 @@ int plugin_init(int *argc, char **argv, int flags) ...@@ -1151,9 +1151,13 @@ int plugin_init(int *argc, char **argv, int flags)
if (is_myisam) if (is_myisam)
{ {
DBUG_ASSERT(!global_system_variables.table_plugin); 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) global_system_variables.table_plugin= (plugin_ref)
my_malloc(sizeof(plugin_ptr), MYF(MY_WME | MY_FAE)); my_malloc(sizeof(plugin_ptr), MYF(MY_WME | MY_FAE));
global_system_variables.table_plugin[0]= plugin_ptr; global_system_variables.table_plugin[0]= plugin_ptr;
#endif
plugin_ptr->ref_count++; plugin_ptr->ref_count++;
DBUG_ASSERT(plugin_ptr->ref_count == 1); DBUG_ASSERT(plugin_ptr->ref_count == 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment