| 6651 | |
| 6652 | |
| 6653 | static Create_func * |
| 6654 | function_plugin_find_native_function_builder(THD *thd, const LEX_CSTRING &name) |
| 6655 | { |
| 6656 | plugin_ref plugin; |
| 6657 | if ((plugin= my_plugin_lock_by_name(thd, &name, MariaDB_FUNCTION_PLUGIN))) |
| 6658 | { |
| 6659 | Create_func *builder= |
| 6660 | reinterpret_cast<Plugin_function*>(plugin_decl(plugin)->info)-> |
| 6661 | create_func(); |
| 6662 | // TODO: MDEV-20846 Add proper unlocking for MariaDB_FUNCTION_PLUGIN |
| 6663 | plugin_unlock(thd, plugin); |
| 6664 | return builder; |
| 6665 | } |
| 6666 | return NULL; |
| 6667 | } |
| 6668 | |
| 6669 | |
| 6670 | Create_func * |
no test coverage detected