| 460 | #ifdef HAVE_DLOPEN |
| 461 | |
| 462 | static struct st_plugin_dl *plugin_dl_find(const LEX_CSTRING *dl) |
| 463 | { |
| 464 | size_t i; |
| 465 | struct st_plugin_dl *tmp; |
| 466 | DBUG_ENTER("plugin_dl_find"); |
| 467 | for (i= 0; i < plugin_dl_array.elements; i++) |
| 468 | { |
| 469 | tmp= *dynamic_element(&plugin_dl_array, i, struct st_plugin_dl **); |
| 470 | if (tmp->ref_count && |
| 471 | ! files_charset_info->strnncoll(dl->str, dl->length, |
| 472 | tmp->dl.str, tmp->dl.length)) |
| 473 | DBUG_RETURN(tmp); |
| 474 | } |
| 475 | DBUG_RETURN(0); |
| 476 | } |
| 477 | |
| 478 | |
| 479 | static st_plugin_dl *plugin_dl_insert_or_reuse(struct st_plugin_dl *plugin_dl) |
no test coverage detected