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

Function plugin_status

sql/sql_plugin.cc:938–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936
937
938static 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
955bool plugin_is_ready(const LEX_CSTRING *name, int type)

Callers 1

plugin_is_readyFunction · 0.85

Calls 1

plugin_find_internalFunction · 0.85

Tested by

no test coverage detected