1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

show "dying" state in I_S.PLUGINS

This commit is contained in:
Sergei Golubchik
2021-08-29 13:01:31 +02:00
parent 06a8412b16
commit 193314f402
3 changed files with 9 additions and 5 deletions

View File

@ -231,6 +231,9 @@ static my_bool show_plugins(THD *thd, plugin_ref plugin,
case PLUGIN_IS_DISABLED:
table->field[2]->store(STRING_WITH_LEN("DISABLED"), cs);
break;
case PLUGIN_IS_DYING:
table->field[2]->store(STRING_WITH_LEN("INACTIVE"), cs);
break;
case PLUGIN_IS_FREED: // filtered in fill_plugins, used in fill_all_plugins
table->field[2]->store(STRING_WITH_LEN("NOT INSTALLED"), cs);
break;
@ -324,7 +327,7 @@ int fill_plugins(THD *thd, TABLE_LIST *tables, COND *cond)
TABLE *table= tables->table;
if (plugin_foreach_with_mask(thd, show_plugins, MYSQL_ANY_PLUGIN,
~(PLUGIN_IS_FREED | PLUGIN_IS_DYING), table))
~PLUGIN_IS_FREED, table))
DBUG_RETURN(1);
DBUG_RETURN(0);