Commit 07ef7461 authored by unknown's avatar unknown

Bug#20615

  "plugin name lost when loading an already-loaded name"
  Do not delete existing plugin when loading a new plugin which has the
  same name.


sql/sql_plugin.cc:
  Bug#20615
    Don't delete the plugin if it wasn't added.
parent e564f89c
...@@ -864,8 +864,8 @@ my_bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING ...@@ -864,8 +864,8 @@ my_bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
deinit: deinit:
plugin_deinitialize(tmp); plugin_deinitialize(tmp);
err:
plugin_del(tmp); plugin_del(tmp);
err:
rw_unlock(&THR_LOCK_plugin); rw_unlock(&THR_LOCK_plugin);
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
} }
......
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