1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

fix(formating): return to the original formatting

This commit is contained in:
drrtuy
2025-05-19 18:45:12 +00:00
parent 44040b4367
commit 7cf3003727

View File

@ -4127,33 +4127,33 @@ int ha_mcs_impl_pushdown_init(mcs_handler_info* handler_info, TABLE* table, bool
bool localQuery = (get_local_query(thd) > 0 ? true : false); bool localQuery = (get_local_query(thd) > 0 ? true : false);
{ {
ci->stats.reset(); // reset query stats ci->stats.reset(); // reset query stats
ci->stats.setStartTime(); ci->stats.setStartTime();
if (thd->main_security_ctx.user) if (thd->main_security_ctx.user)
{ {
ci->stats.fUser = thd->main_security_ctx.user; ci->stats.fUser = thd->main_security_ctx.user;
} }
else else
{ {
ci->stats.fUser = ""; 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;
else if (thd->main_security_ctx.host_or_ip) else if (thd->main_security_ctx.host_or_ip)
ci->stats.fHost = thd->main_security_ctx.host_or_ip; ci->stats.fHost = thd->main_security_ctx.host_or_ip;
else else
ci->stats.fHost = "unknown"; ci->stats.fHost = "unknown";
try try
{ {
ci->stats.userPriority(ci->stats.fHost, ci->stats.fUser); ci->stats.userPriority(ci->stats.fHost, ci->stats.fUser);
} }
catch (std::exception& e) catch (std::exception& e)
{ {
string msg = string("Columnstore User Priority - ") + e.what(); string msg = string("Columnstore User Priority - ") + e.what();
ci->warningMsg = msg; ci->warningMsg = msg;
} }
// if the previous query has error, re-establish the connection // if the previous query has error, re-establish the connection
if (ci->queryState != 0) if (ci->queryState != 0)