Skip to content

Commit 40c2460

Browse files
committed
in INFORMATION_SCHEMA.ALL_PLUGINS match installed plugins better
look for an installed plugin with the same name _and the same type_ (in case there are many plugins with the same name and different type, which is, technically, possible for built-in plugins).
1 parent 8ea529e commit 40c2460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_plugin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ static bool plugin_dl_foreach_internal(THD *thd, st_plugin_dl *plugin_dl,
24582458
tmp.plugin_dl= plugin_dl;
24592459

24602460
mysql_mutex_lock(&LOCK_plugin);
2461-
if ((plugin= plugin_find_internal(&tmp.name, MYSQL_ANY_PLUGIN)) &&
2461+
if ((plugin= plugin_find_internal(&tmp.name, plug->type)) &&
24622462
plugin->plugin == plug)
24632463

24642464
{

0 commit comments

Comments
 (0)