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

Function plugin_find_internal

sql/sql_plugin.cc:910–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908
909
910static struct st_plugin_int *plugin_find_internal(const LEX_CSTRING *name,
911 int type)
912{
913 uint i;
914 DBUG_ENTER("plugin_find_internal");
915 if (! initialized)
916 DBUG_RETURN(0);
917
918 mysql_mutex_assert_owner(&LOCK_plugin);
919
920 if (type == MYSQL_ANY_PLUGIN)
921 {
922 for (i= 0; i < MYSQL_MAX_PLUGIN_TYPE_NUM; i++)
923 {
924 struct st_plugin_int *plugin= (st_plugin_int *)
925 my_hash_search(&plugin_hash[i], (const uchar *)name->str, name->length);
926 if (plugin)
927 DBUG_RETURN(plugin);
928 }
929 }
930 else
931 DBUG_RETURN((st_plugin_int *)
932 my_hash_search(&plugin_hash[type], (const uchar *)name->str,
933 name->length));
934 DBUG_RETURN(0);
935}
936
937
938static SHOW_COMP_OPTION plugin_status(const LEX_CSTRING *name, int type)

Callers 7

plugin_statusFunction · 0.85
plugin_lock_by_nameFunction · 0.85
plugin_addFunction · 0.85
plugin_initFunction · 0.85
finalize_installFunction · 0.85
do_uninstallFunction · 0.85

Calls 1

my_hash_searchFunction · 0.85

Tested by

no test coverage detected