[Commits] 89a2648: MDEV-9224: postfix - thd can be null in reload_acl_and_cache()

Nirbhay Choubey nirbhay at mariadb.com
Wed Dec 23 16:51:32 EET 2015


revision-id: 89a264809d660fb5a4e7d43e9324b1f529a3a1d7 (mariadb-galera-10.0.22-12-g89a2648)
parent(s): e6c0f25f04c0dd6be7cd3973bf1a58dff213f985
author: Nirbhay Choubey
committer: Nirbhay Choubey
timestamp: 2015-12-23 09:51:32 -0500
message:

MDEV-9224: postfix - thd can be null in reload_acl_and_cache()

---
 sql/sql_reload.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/sql_reload.cc b/sql/sql_reload.cc
index ef69996..f390991 100644
--- a/sql/sql_reload.cc
+++ b/sql/sql_reload.cc
@@ -314,7 +314,7 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
       }
 
 #ifdef WITH_WSREP
-      if (thd->wsrep_applier)
+      if (thd && thd->wsrep_applier)
       {
         /*
           In case of applier thread, do not wait for table share(s) to be


More information about the commits mailing list