| 888 | |
| 889 | |
| 890 | static 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 | |
| 910 | static struct st_plugin_int *plugin_find_internal(const LEX_CSTRING *name, |
no test coverage detected