Skip to content

Commit 32df0b1

Browse files
sjaakolaNirbhay Choubey
authored andcommitted
- avoiding the race condition, by not grabbing thd->LOCK_wsrep_thd for accessing thd->wsrep_exec_mode. The caller is same thread and exec mode can only be changed by self.
1 parent 90e5e2f commit 32df0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/mdl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ MDL_wait::timed_wait(MDL_context_owner *owner, struct timespec *abs_timeout,
14551455
DBUG_ASSERT(!debug_sync_set_action((owner->get_thd()),
14561456
STRING_WITH_LEN(act)));
14571457
};);
1458-
if (wsrep_thd_is_BF(owner->get_thd(), true))
1458+
if (wsrep_thd_is_BF(owner->get_thd(), false))
14591459
{
14601460
wait_result= mysql_cond_wait(&m_COND_wait_status, &m_LOCK_wait_status);
14611461
}

0 commit comments

Comments
 (0)