From 40c2460d8c5b614cb84fac41f14de25d80f6fd1c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 1 Aug 2022 11:11:26 +0200 Subject: 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). --- sql/sql_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_plugin.cc') diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 1858e9d81c8..b251df490c4 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -2458,7 +2458,7 @@ static bool plugin_dl_foreach_internal(THD *thd, st_plugin_dl *plugin_dl, tmp.plugin_dl= plugin_dl; mysql_mutex_lock(&LOCK_plugin); - if ((plugin= plugin_find_internal(&tmp.name, MYSQL_ANY_PLUGIN)) && + if ((plugin= plugin_find_internal(&tmp.name, plug->type)) && plugin->plugin == plug) { -- cgit v1.2.1