mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
perfschema: use LOCK_thd_kill to "keep THD during materialization"
fixes the failure of ./mtr --ps sys_vars.gtid_slave_pos_grant sysschema.v_session_ssl_status safe_mutex: Found wrong usage of mutex 'LOCK_thd_data' and 'LOCK_active_mi'
This commit is contained in:
@@ -212,7 +212,7 @@ public:
|
||||
return false;
|
||||
|
||||
/* Hold this lock to keep THD during materialization. */
|
||||
mysql_mutex_lock(&thd->LOCK_thd_data);
|
||||
mysql_mutex_lock(&thd->LOCK_thd_kill);
|
||||
return true;
|
||||
}
|
||||
void set_unsafe_thd(THD *unsafe_thd) { m_unsafe_thd= unsafe_thd; }
|
||||
|
Reference in New Issue
Block a user