MCPcopy Create free account
hub / github.com/MariaDB/server / plugin_dl_del

Function plugin_dl_del

sql/sql_plugin.cc:890–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888
889
890static void plugin_dl_del(struct st_plugin_dl *plugin_dl)
891{
892 DBUG_ENTER("plugin_dl_del");
893
894 if (!plugin_dl)
895 DBUG_VOID_RETURN;
896
897 mysql_mutex_assert_owner(&LOCK_plugin);
898
899 /* Do not remove this element, unless no other plugin uses this dll. */
900 if (! --plugin_dl->ref_count)
901 {
902 free_plugin_mem(plugin_dl);
903 bzero(plugin_dl, sizeof(struct st_plugin_dl));
904 }
905
906 DBUG_VOID_RETURN;
907}
908
909
910static struct st_plugin_int *plugin_find_internal(const LEX_CSTRING *name,

Callers 3

plugin_addFunction · 0.85
plugin_delFunction · 0.85
plugin_dl_foreachFunction · 0.85

Calls 1

free_plugin_memFunction · 0.85

Tested by

no test coverage detected