mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-32043 mariadb-upgrade should remove bundled plugins from mysql.plugin
Also in the startup, lets not "Error" on attempting to install a mysql.plugin that is already there. We use the 'if_not_exists' parameter to true to downgrade this to a "Note". Also corrects: MDEV-32041 "plugin already loaded" should be a Warning, not an Error
This commit is contained in:
@ -1929,7 +1929,7 @@ static void plugin_load(MEM_ROOT *tmp_root)
|
||||
the mutex here to satisfy the assert
|
||||
*/
|
||||
mysql_mutex_lock(&LOCK_plugin);
|
||||
plugin_add(tmp_root, false, &name, &dl, MYF(ME_ERROR_LOG));
|
||||
plugin_add(tmp_root, true, &name, &dl, MYF(ME_ERROR_LOG));
|
||||
free_root(tmp_root, MYF(MY_MARK_BLOCKS_FREE));
|
||||
mysql_mutex_unlock(&LOCK_plugin);
|
||||
}
|
||||
|
Reference in New Issue
Block a user