1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug #46495 Crash in reload_acl_and_cache on SIGHUP

An assert in reload_acl_and_cache didn't account for the
case when the function is called with a NULL thd.  A
null thd is used whenever the function is called from the
SIGHUP signal handler.

Backported from 6.0-codebase  (revid: 2617.69.35)
This commit is contained in:
Magne Mahre
2009-12-10 10:32:23 +01:00
parent f129367288
commit f3bc2406b0

View File

@ -6568,7 +6568,7 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables,
}
#endif /*HAVE_QUERY_CACHE*/
DBUG_ASSERT(thd->locked_tables_mode || !thd->mdl_context.has_locks());
DBUG_ASSERT(!thd || thd->locked_tables_mode || !thd->mdl_context.has_locks());
/*
Note that if REFRESH_READ_LOCK bit is set then REFRESH_TABLES is set too