Details
-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Incomplete
-
Fix Version/s: 10.0.2
-
Component/s: None
-
Labels:None
Description
check that plugins_foreach isn't called under thd->LOCK_ha_data.
either with mysql_mutex_assert_not_owner()
or with mysql_mutex_record_order()
note this change:
=== modified file 'sql/sql_class.cc'
--- sql/sql_class.cc 2012-12-20 23:12:37 +0000
+++ sql/sql_class.cc 2013-01-10 22:22:14 +0000
@@ -736,8 +736,9 @@
str.append(proc_info);
}
- mysql_mutex_lock(&thd->LOCK_thd_data);
-
+ /* Don't wait if LOCK_thd_data is used as this could cause a deadlock */
+ if (!mysql_mutex_trylock(&thd->LOCK_thd_data))
+ {
if (thd->query())
{
if (max_query_len < 1)
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions