diff options
author | Ashish Agarwal <ashish.y.agarwal@oracle.com> | 2012-10-31 12:40:48 +0530 |
---|---|---|
committer | Ashish Agarwal <ashish.y.agarwal@oracle.com> | 2012-10-31 12:40:48 +0530 |
commit | 154860eab5499cf44160f253694a87b8147a2965 (patch) | |
tree | c8c8b75763cf3060a86227f692f245b610b95463 /mysql-test/include/plugin.defs | |
parent | 5598603a087fecc4b012939c841ece93a7151295 (diff) | |
download | mariadb-git-154860eab5499cf44160f253694a87b8147a2965.tar.gz |
BUG#14485479: INSTALL AUDIT PLUGIN HANGS IF WE TRY TO
DISABLE AND ENABLED DURING DDL OPERATION
PROBLEM: Same thread trying to acquire the same mutex
second time leads to hang/server crash.
While [un]installing audit_log plugin
a thread acquires the LOCK_plugin mutex
and after successful initialization tries
to write in mysql.plugin table. It holds
this mutex for a long time. If some how
plugin table is corrupted then a write to
plugin table will throw an error, thread try
to log this error in the audit_log plugin,
doing so it tries to acquire the mutex
again and results is server hang/crash.
SOLUTION: Releasing the LOCK_plugin mutex before
writing in mysql.plugin table. We dont
need to hold this mutex as thread already
acquired a TL_WRITE lock on mysql.plugin
table.
Diffstat (limited to 'mysql-test/include/plugin.defs')
-rw-r--r-- | mysql-test/include/plugin.defs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/include/plugin.defs b/mysql-test/include/plugin.defs index 6fbe4f68328..45fdfdb9a41 100644 --- a/mysql-test/include/plugin.defs +++ b/mysql-test/include/plugin.defs @@ -40,3 +40,4 @@ ha_blackhole storage/blackhole BLACKHOLE_PLUGIN ha_federated storage/federated FEDERATED_PLUGIN mypluglib plugin/fulltext SIMPLE_PARSER libdaemon_example plugin/daemon_example DAEMONEXAMPLE +adt_null plugin/audit_null AUDIT_NULL |