Commit fdd62e53 authored by Sergei Golubchik's avatar Sergei Golubchik

bug in converting st_mysql_plugin to st_maria_plugin - all but the last plugin in a dl were lost

parent a670f14e
......@@ -460,32 +460,32 @@ static my_bool read_mysql_plugin_info(struct st_plugin_dl *plugin_dl,
i++)
{
cur->type= old->type;
cur->info= old->info;
cur->name= old->name;
cur->author= old->author;
cur->descr= old->descr;
cur->license= old->license;
cur->init= old->init;
cur->deinit= old->deinit;
cur->version= old->version;
cur->status_vars= old->status_vars;
cur->system_vars= old->system_vars;
cur[i].type= old->type;
cur[i].info= old->info;
cur[i].name= old->name;
cur[i].author= old->author;
cur[i].descr= old->descr;
cur[i].license= old->license;
cur[i].init= old->init;
cur[i].deinit= old->deinit;
cur[i].version= old->version;
cur[i].status_vars= old->status_vars;
cur[i].system_vars= old->system_vars;
/*
Something like this should be added to process
new mysql plugin versions:
if (plugin_dl->mysqlversion > 0x0101)
{
cur->newfield= CONSTANT_MEANS_UNKNOWN;
cur[i].newfield= CONSTANT_MEANS_UNKNOWN;
}
else
{
cur->newfield= old->newfield;
cur[i].newfield= old->newfield;
}
*/
/* Maria only fields */
cur->version_info= "Unknown";
cur->maturity= MariaDB_PLUGIN_MATURITY_UNKNOWN;
cur[i].version_info= "Unknown";
cur[i].maturity= MariaDB_PLUGIN_MATURITY_UNKNOWN;
}
plugin_dl->allocated= true;
plugin_dl->plugins= (struct st_maria_plugin *)cur;
......
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