summaryrefslogtreecommitdiff
path: root/sql/mdl.cc
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2015-12-02 23:20:10 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2016-02-23 00:22:04 -0500
commit32df0b1aac4ebd8ae7232260500ae4d262ca9915 (patch)
tree2c71f172c24fd340dfc1b2b3bf0d8c85df4c47f6 /sql/mdl.cc
parent90e5e2f91c2f5be240186b6c08f4cab8c8c8b278 (diff)
downloadmariadb-git-32df0b1aac4ebd8ae7232260500ae4d262ca9915.tar.gz
refs codership/mysql-wsrep#233
- 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.
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r--sql/mdl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc
index 2aef46a4fa5..daa3d919c15 100644
--- a/sql/mdl.cc
+++ b/sql/mdl.cc
@@ -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);
}