Skip to content

Commit c5ac983

Browse files
janlindstromsysprg
authored andcommitted
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>
1 parent 7bf3c31 commit c5ac983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/service_wsrep.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ extern "C" void wsrep_handle_SR_rollback(THD *bf_thd,
201201

202202
/* Note: do not store/reset globals before wsrep_bf_abort() call
203203
to avoid losing BF thd context. */
204-
mysql_mutex_lock(&victim_thd->LOCK_thd_data);
205204
if (!(bf_thd && bf_thd != victim_thd))
206205
{
207206
DEBUG_SYNC(victim_thd, "wsrep_before_SR_rollback");
208207
}
208+
mysql_mutex_lock(&victim_thd->LOCK_thd_data);
209209
if (bf_thd)
210210
{
211211
wsrep_bf_abort(bf_thd, victim_thd);

0 commit comments

Comments
 (0)