summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Setiya <sachin.setiya@mariadb.com>2017-05-08 16:00:23 +0530
committerSachin Setiya <sachin.setiya@mariadb.com>2017-05-08 16:00:23 +0530
commit10d7a2f8e0e9076596ecbe9531d0448837cabf63 (patch)
treefd4cf38fa50d92c73cfb37c7e7d206a0b6f17518
parente4a52670f495c01307b124d729c29c7ef21be2ca (diff)
downloadmariadb-git-10d7a2f8e0e9076596ecbe9531d0448837cabf63.tar.gz
Fix galera test failures.
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index a8db8463e8e..92bccadc84b 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -2177,7 +2177,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use,
#ifdef WITH_WSREP
{
signalled|= mysql_lock_abort_for_thread(this, thd_table);
- if (WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE))
+ if (this && WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE))
{
WSREP_DEBUG("remove_table_from_cache: %llu",
(unsigned long long) this->real_id);