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

Function plugin_unlock

sql/sql_plugin.cc:1413–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411
1412
1413void plugin_unlock(THD *thd, plugin_ref plugin)
1414{
1415 LEX *lex= thd ? thd->lex : 0;
1416 DBUG_ENTER("plugin_unlock");
1417 if (!plugin)
1418 DBUG_VOID_RETURN;
1419#ifdef DBUG_OFF
1420 /* built-in plugins don't need ref counting */
1421 if (!plugin_dlib(plugin))
1422 DBUG_VOID_RETURN;
1423#endif
1424 mysql_mutex_lock(&LOCK_plugin);
1425 intern_plugin_unlock(lex, plugin);
1426 reap_plugins();
1427 mysql_mutex_unlock(&LOCK_plugin);
1428 DBUG_VOID_RETURN;
1429}
1430
1431
1432void plugin_unlock_list(THD *thd, plugin_ref *list, size_t count)

Callers 15

clean_upFunction · 0.85
ha_resolve_by_nameFunction · 0.85
ha_close_connectionFunction · 0.85
discover_handlertonFunction · 0.85
destroyMethod · 0.85
handler_by_nameMethod · 0.85
resolve_engine_list_itemFunction · 0.85

Calls 2

intern_plugin_unlockFunction · 0.85
reap_pluginsFunction · 0.85

Tested by

no test coverage detected