Skip to content

Commit 89a2648

Browse files
author
Nirbhay Choubey
committed
MDEV-9224: postfix - thd can be null in reload_acl_and_cache()
1 parent e6c0f25 commit 89a2648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_reload.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
314314
}
315315

316316
#ifdef WITH_WSREP
317-
if (thd->wsrep_applier)
317+
if (thd && thd->wsrep_applier)
318318
{
319319
/*
320320
In case of applier thread, do not wait for table share(s) to be

0 commit comments

Comments
 (0)