mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
MDEV-24301 [Warning] Aborted connection (This connection closed normally)
Warning on a normal graceful disconnnect is excessive, so lets not do it. MDEV-19282 restructed the code from 10.3 so applying this as a 10.4+ fix.
This commit is contained in:
parent
bef20b5f36
commit
f4b900e6fa
1 changed files with 3 additions and 5 deletions
|
@ -2576,11 +2576,9 @@ void close_connection(THD *thd, uint sql_errno)
|
||||||
net_send_error(thd, sql_errno, ER_DEFAULT(sql_errno), NULL);
|
net_send_error(thd, sql_errno, ER_DEFAULT(sql_errno), NULL);
|
||||||
thd->print_aborted_warning(lvl, ER_DEFAULT(sql_errno));
|
thd->print_aborted_warning(lvl, ER_DEFAULT(sql_errno));
|
||||||
}
|
}
|
||||||
else
|
else if (!thd->main_security_ctx.user)
|
||||||
thd->print_aborted_warning(lvl, (thd->main_security_ctx.user ?
|
thd->print_aborted_warning(lvl, "This connection closed normally without"
|
||||||
"This connection closed normally" :
|
" authentication");
|
||||||
"This connection closed normally without"
|
|
||||||
" authentication"));
|
|
||||||
|
|
||||||
thd->disconnect();
|
thd->disconnect();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue