Commit 0e3170e3 authored by Sachin Setiya's avatar Sachin Setiya

Fix galera tests part II(Fix previous commit)

parent 10d7a2f8
...@@ -2177,7 +2177,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use, ...@@ -2177,7 +2177,7 @@ bool THD::notify_shared_lock(MDL_context_owner *ctx_in_use,
#ifdef WITH_WSREP #ifdef WITH_WSREP
{ {
signalled|= mysql_lock_abort_for_thread(this, thd_table); signalled|= mysql_lock_abort_for_thread(this, thd_table);
if (this && WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE)) if (WSREP(this) && wsrep_thd_is_BF((void *)this, FALSE))
{ {
WSREP_DEBUG("remove_table_from_cache: %llu", WSREP_DEBUG("remove_table_from_cache: %llu",
(unsigned long long) this->real_id); (unsigned long long) this->real_id);
......
...@@ -207,7 +207,7 @@ extern wsrep_seqno_t wsrep_locked_seqno; ...@@ -207,7 +207,7 @@ extern wsrep_seqno_t wsrep_locked_seqno;
strcmp(wsrep_provider, WSREP_NONE)) strcmp(wsrep_provider, WSREP_NONE))
#define WSREP(thd) \ #define WSREP(thd) \
(WSREP_ON && wsrep && (thd->variables.wsrep_on)) (WSREP_ON && wsrep && (thd && thd->variables.wsrep_on))
#define WSREP_CLIENT(thd) \ #define WSREP_CLIENT(thd) \
(WSREP(thd) && thd->wsrep_client_thread) (WSREP(thd) && thd->wsrep_client_thread)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment