1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-26774 Compression provider unloading at runtime has no effect but doesn't produce a warning

This commit is contained in:
Sergei Golubchik
2021-10-09 11:07:47 +02:00
parent 867f05ded3
commit a010959a56
3 changed files with 22 additions and 1 deletions

View File

@ -1267,7 +1267,13 @@ static void plugin_deinitialize(struct st_plugin_int *plugin, bool ref_check)
if (!deinit)
deinit= (plugin_type_init)(plugin->plugin->deinit);
if (!deinit || !deinit(plugin))
if (deinit && deinit(plugin))
{
if (THD *thd= current_thd)
push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
WARN_PLUGIN_BUSY, ER_THD(thd, WARN_PLUGIN_BUSY));
}
else
plugin->state= PLUGIN_IS_UNINITIALIZED; // free to unload
if (ref_check && plugin->ref_count)