Commit 91673114 authored by unknown's avatar unknown

compilation error

parent b6965ac3
...@@ -657,7 +657,7 @@ char *thd_security_context(MYSQL_THD thd, char *buffer, unsigned int length, ...@@ -657,7 +657,7 @@ char *thd_security_context(MYSQL_THD thd, char *buffer, unsigned int length,
#ifdef __cplusplus #ifdef __cplusplus
}; }
#endif #endif
#endif #endif
......
...@@ -1151,10 +1151,8 @@ int plugin_init(int *argc, char **argv, int flags) ...@@ -1151,10 +1151,8 @@ 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);
global_system_variables.table_plugin= (plugin_ref) global_system_variables.table_plugin=
my_malloc(sizeof(plugin_ptr), MYF(MY_WME | MY_FAE)); my_intern_plugin_lock(NULL, plugin_int_to_ref(plugin_ptr));
global_system_variables.table_plugin[0]= plugin_ptr;
plugin_ptr->ref_count++;
DBUG_ASSERT(plugin_ptr->ref_count == 1); DBUG_ASSERT(plugin_ptr->ref_count == 1);
} }
} }
...@@ -1436,7 +1434,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv, ...@@ -1436,7 +1434,7 @@ static bool plugin_load_list(MEM_ROOT *tmp_root, int *argc, char **argv,
void plugin_shutdown(void) void plugin_shutdown(void)
{ {
uint i, count= plugin_array.elements, free_slots; uint i, count= plugin_array.elements, free_slots= 0;
struct st_plugin_int **plugins, *plugin; struct st_plugin_int **plugins, *plugin;
struct st_plugin_dl **dl; struct st_plugin_dl **dl;
DBUG_ENTER("plugin_shutdown"); DBUG_ENTER("plugin_shutdown");
......
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