You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-04 04:42:30 +03:00
MCOL-4181: Possible setting of ci->stats.fUser to NULL causing crash.
This commit is contained in:
@ -5041,7 +5041,14 @@ int ha_cs_impl_pushdown_init(mcs_handler_info* handler_info, TABLE* table)
|
|||||||
{
|
{
|
||||||
ci->stats.reset(); // reset query stats
|
ci->stats.reset(); // reset query stats
|
||||||
ci->stats.setStartTime();
|
ci->stats.setStartTime();
|
||||||
|
if (thd->main_security_ctx.user)
|
||||||
|
{
|
||||||
ci->stats.fUser = thd->main_security_ctx.user;
|
ci->stats.fUser = thd->main_security_ctx.user;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ci->stats.fUser = "";
|
||||||
|
}
|
||||||
|
|
||||||
if (thd->main_security_ctx.host)
|
if (thd->main_security_ctx.host)
|
||||||
ci->stats.fHost = thd->main_security_ctx.host;
|
ci->stats.fHost = thd->main_security_ctx.host;
|
||||||
|
Reference in New Issue
Block a user