1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

Move the filling of the table_name column above the initialization,

so that the init function has access to the name.
This commit is contained in:
unknown
2007-07-18 12:27:54 -04:00
parent 3e09e4adce
commit 6d0419f6bc

View File

@@ -5904,6 +5904,7 @@ int initialize_schema_table(st_plugin_int *plugin)
schema_table->old_format= make_old_format; schema_table->old_format= make_old_format;
schema_table->idx_field1= -1, schema_table->idx_field1= -1,
schema_table->idx_field2= -1; schema_table->idx_field2= -1;
schema_table->table_name= plugin->name.str;
if (plugin->plugin->init(schema_table)) if (plugin->plugin->init(schema_table))
{ {
@@ -5911,7 +5912,6 @@ int initialize_schema_table(st_plugin_int *plugin)
plugin->name.str); plugin->name.str);
goto err; goto err;
} }
schema_table->table_name= plugin->name.str;
} }
DBUG_RETURN(0); DBUG_RETURN(0);