• Sergey Vojtovich's avatar
    MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and · e1e5ce0d
    Sergey Vojtovich authored
                INSTALL PLUGIN
    
    There was mixed lock order between LOCK_plugin, LOCK_global_system_variables
    and LOCK_system_variables_hash. This patch ensures that write-lock on
    LOCK_system_variables_hash doesn't intersect with LOCK_plugin.
    
    Fixed by moving initialization/deinitialization of plugin options from
    plugin_add()/plugin_del() to plugin_initialize()/plugin_deinitalize().
    So that plugin options are handled without protection of LOCK_plugin.
    e1e5ce0d
plugin_vars.test 926 Bytes