| 908 | |
| 909 | |
| 910 | static 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 | |
| 938 | static SHOW_COMP_OPTION plugin_status(const LEX_CSTRING *name, int type) |
no test coverage detected