1
0
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:
Sergei Golubchik
2023-12-13 00:37:57 +01:00
parent d9cb1a2b7e
commit 736a54f49c
2 changed files with 8 additions and 8 deletions

View File

@@ -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; }