| 1361 | } |
| 1362 | |
| 1363 | void lex_unlock_plugins(LEX *lex) |
| 1364 | { |
| 1365 | DBUG_ENTER("lex_unlock_plugins"); |
| 1366 | |
| 1367 | /* release used plugins */ |
| 1368 | if (lex->plugins.elements) /* No function call and no mutex if no plugins. */ |
| 1369 | { |
| 1370 | plugin_unlock_list(0, (plugin_ref*)lex->plugins.buffer, |
| 1371 | lex->plugins.elements); |
| 1372 | } |
| 1373 | reset_dynamic(&lex->plugins); |
| 1374 | DBUG_VOID_RETURN; |
| 1375 | } |
| 1376 | |
| 1377 | /* |
| 1378 | Don't delete lex->sphead, it'll be needed for EXECUTE. |
no test coverage detected