1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

Merge pull request #1344 from benthompson15/MCOL-4181-dev

MCOL-4181: Possible setting of ci->stats.fUser to NULL causing crash.
This commit is contained in:
Gagan Goel 2020-07-21 15:11:35 -04:00 committed by GitHub
commit 6fa984f883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.setStartTime();
ci->stats.fUser = thd->main_security_ctx.user;
if (thd->main_security_ctx.user)
{
ci->stats.fUser = thd->main_security_ctx.user;
}
else
{
ci->stats.fUser = "";
}
if (thd->main_security_ctx.host)
ci->stats.fHost = thd->main_security_ctx.host;