MDEV-33039 Galera test failure on mysql-wsrep-features#165
We should not set debug sync point when holding a mutex to avoid mutex ordering failure. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
parent
7bf3c3124a
commit
c5ac9836b3
@ -201,11 +201,11 @@ extern "C" void wsrep_handle_SR_rollback(THD *bf_thd,
|
|||||||
|
|
||||||
/* Note: do not store/reset globals before wsrep_bf_abort() call
|
/* Note: do not store/reset globals before wsrep_bf_abort() call
|
||||||
to avoid losing BF thd context. */
|
to avoid losing BF thd context. */
|
||||||
mysql_mutex_lock(&victim_thd->LOCK_thd_data);
|
|
||||||
if (!(bf_thd && bf_thd != victim_thd))
|
if (!(bf_thd && bf_thd != victim_thd))
|
||||||
{
|
{
|
||||||
DEBUG_SYNC(victim_thd, "wsrep_before_SR_rollback");
|
DEBUG_SYNC(victim_thd, "wsrep_before_SR_rollback");
|
||||||
}
|
}
|
||||||
|
mysql_mutex_lock(&victim_thd->LOCK_thd_data);
|
||||||
if (bf_thd)
|
if (bf_thd)
|
||||||
{
|
{
|
||||||
wsrep_bf_abort(bf_thd, victim_thd);
|
wsrep_bf_abort(bf_thd, victim_thd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user