Commit b2d1e9b7 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: properly reset db_plugin when hlindex discovery fails

otherwise it'll be free'd twice
parent 37129721
......@@ -6427,7 +6427,10 @@ int ha_create_table(THD *thd, const char *path, const char *db,
LEX_CSTRING sql= mhnsw_hlindex_table_def(thd, ref_length);
if ((error= index_share.init_from_sql_statement_string(thd, false,
sql.str, sql.length)))
{
index_share.db_plugin= NULL;
break;
}
uint unused;
if ((error= ha_create_table_from_share(thd, &index_share, &index_cinfo,
......
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