From cfa3f9106ec77a75179c83abf64a4ced835759bb Mon Sep 17 00:00:00 2001 From: "antony@ppcg5.local" <> Date: Sun, 29 Apr 2007 08:12:44 -0700 Subject: [PATCH] compile-dist failure fix compile error when DBUG_OFF --- sql/sql_plugin.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); }