summaryrefslogtreecommitdiff
path: root/mysql-test/include/plugin.defs
diff options
context:
space:
mode:
authorAshish Agarwal <ashish.y.agarwal@oracle.com>2012-10-31 12:40:48 +0530
committerAshish Agarwal <ashish.y.agarwal@oracle.com>2012-10-31 12:40:48 +0530
commit154860eab5499cf44160f253694a87b8147a2965 (patch)
treec8c8b75763cf3060a86227f692f245b610b95463 /mysql-test/include/plugin.defs
parent5598603a087fecc4b012939c841ece93a7151295 (diff)
downloadmariadb-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.defs1
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