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

Function plugin_dl_find

sql/sql_plugin.cc:462–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460#ifdef HAVE_DLOPEN
461
462static struct st_plugin_dl *plugin_dl_find(const LEX_CSTRING *dl)
463{
464 size_t i;
465 struct st_plugin_dl *tmp;
466 DBUG_ENTER("plugin_dl_find");
467 for (i= 0; i < plugin_dl_array.elements; i++)
468 {
469 tmp= *dynamic_element(&plugin_dl_array, i, struct st_plugin_dl **);
470 if (tmp->ref_count &&
471 ! files_charset_info->strnncoll(dl->str, dl->length,
472 tmp->dl.str, tmp->dl.length))
473 DBUG_RETURN(tmp);
474 }
475 DBUG_RETURN(0);
476}
477
478
479static st_plugin_dl *plugin_dl_insert_or_reuse(struct st_plugin_dl *plugin_dl)

Callers 3

plugin_dl_addFunction · 0.85
mysql_install_pluginFunction · 0.85
mysql_uninstall_pluginFunction · 0.85

Calls 1

strnncollMethod · 0.80

Tested by

no test coverage detected