From 89a264809d660fb5a4e7d43e9324b1f529a3a1d7 Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Wed, 23 Dec 2015 09:51:32 -0500 Subject: [PATCH] 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 ef699962777..f3909913c5b 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