mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
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:
parent
6d0419f6bc
commit
b79daf4109
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue