| 1411 | |
| 1412 | |
| 1413 | void 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 | |
| 1432 | void plugin_unlock_list(THD *thd, plugin_ref *list, size_t count) |
no test coverage detected