| 936 | |
| 937 | |
| 938 | static SHOW_COMP_OPTION plugin_status(const LEX_CSTRING *name, int type) |
| 939 | { |
| 940 | SHOW_COMP_OPTION rc= SHOW_OPTION_NO; |
| 941 | struct st_plugin_int *plugin; |
| 942 | DBUG_ENTER("plugin_is_ready"); |
| 943 | mysql_mutex_lock(&LOCK_plugin); |
| 944 | if ((plugin= plugin_find_internal(name, type))) |
| 945 | { |
| 946 | rc= SHOW_OPTION_DISABLED; |
| 947 | if (plugin->state == PLUGIN_IS_READY) |
| 948 | rc= SHOW_OPTION_YES; |
| 949 | } |
| 950 | mysql_mutex_unlock(&LOCK_plugin); |
| 951 | DBUG_RETURN(rc); |
| 952 | } |
| 953 | |
| 954 | |
| 955 | bool plugin_is_ready(const LEX_CSTRING *name, int type) |
no test coverage detected