diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2014-01-28 11:12:43 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2014-01-28 11:12:43 +0400 |
commit | e1e5ce0da242c30a744f496dfc5b5a00584d0e56 (patch) | |
tree | 4518efdf226a6225dbc7356a31a2042dfb4213a8 /client/mysql.cc | |
parent | 94868914b84bd96ea946fc583862126ab8bda3a0 (diff) | |
download | mariadb-git-e1e5ce0da242c30a744f496dfc5b5a00584d0e56.tar.gz |
MDEV-5345 - Deadlock between mysql_change_user(), SHOW VARIABLES and
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.
Diffstat (limited to 'client/mysql.cc')
0 files changed, 0 insertions, 0 deletions