Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
sjaakola authored and Nirbhay Choubey committed Feb 23, 2016
1 parent 90e5e2f commit 32df0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/mdl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ MDL_wait::timed_wait(MDL_context_owner *owner, struct timespec *abs_timeout,
DBUG_ASSERT(!debug_sync_set_action((owner->get_thd()),
STRING_WITH_LEN(act)));
};);
if (wsrep_thd_is_BF(owner->get_thd(), true))
if (wsrep_thd_is_BF(owner->get_thd(), false))
{
wait_result= mysql_cond_wait(&m_COND_wait_status, &m_LOCK_wait_status);
}
Expand Down

0 comments on commit 32df0b1

Please sign in to comment.