Re-set the plugin name so that we can be sure the plugin init()

function doesn't set it to something else.
This commit is contained in:
unknown 2007-07-18 13:37:56 -04:00
commit b79daf4109

View file

@ -5904,6 +5904,8 @@ int initialize_schema_table(st_plugin_int *plugin)
schema_table->old_format= make_old_format;
schema_table->idx_field1= -1,
schema_table->idx_field2= -1;
/* Make the name available to the init() function. */
schema_table->table_name= plugin->name.str;
if (plugin->plugin->init(schema_table))
@ -5912,6 +5914,9 @@ int initialize_schema_table(st_plugin_int *plugin)
plugin->name.str);
goto err;
}
/* Make sure the plugin name is not set inside the init() function. */
schema_table->table_name= plugin->name.str;
}
DBUG_RETURN(0);