mirror of
https://github.com/MariaDB/server.git
synced 2025-07-17 12:02:09 +03:00
Fix for galera_3nodes.galera_gtid_2_cluster
Temporary disable WSREP while executing RESET MASTER. In situation when 2 nodes are both master/slave first stop slave on both and than reset master. Enforce stricter causality check with wsrep_sync_wait.
This commit is contained in:
@ -3369,6 +3369,7 @@ static my_bool kill_callback(THD *thd, kill_callback_arg *arg)
|
||||
thd->variables.server_id == arg->slave_server_id)
|
||||
{
|
||||
arg->thd= thd;
|
||||
if (WSREP(thd)) mysql_mutex_lock(&thd->LOCK_thd_data);
|
||||
mysql_mutex_lock(&thd->LOCK_thd_kill); // Lock from delete
|
||||
return 1;
|
||||
}
|
||||
@ -3390,6 +3391,7 @@ void kill_zombie_dump_threads(uint32 slave_server_id)
|
||||
*/
|
||||
arg.thd->awake_no_mutex(KILL_SLAVE_SAME_ID);
|
||||
mysql_mutex_unlock(&arg.thd->LOCK_thd_kill);
|
||||
if (WSREP(arg.thd)) mysql_mutex_unlock(&arg.thd->LOCK_thd_data);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user