mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Manual merge from mysql-next-mr.
This commit is contained in:
@@ -497,6 +497,18 @@ check_user(THD *thd, enum enum_server_command command,
|
||||
thd->main_security_ctx.user,
|
||||
thd->main_security_ctx.host_or_ip,
|
||||
passwd_len ? ER(ER_YES) : ER(ER_NO));
|
||||
/*
|
||||
log access denied messages to the error log when log-warnings = 2
|
||||
so that the overhead of the general query log is not required to track
|
||||
failed connections
|
||||
*/
|
||||
if (global_system_variables.log_warnings > 1)
|
||||
{
|
||||
sql_print_warning(ER(ER_ACCESS_DENIED_ERROR),
|
||||
thd->main_security_ctx.user,
|
||||
thd->main_security_ctx.host_or_ip,
|
||||
passwd_len ? ER(ER_YES) : ER(ER_NO));
|
||||
}
|
||||
DBUG_RETURN(1);
|
||||
#endif /* NO_EMBEDDED_ACCESS_CHECKS */
|
||||
}
|
||||
|
Reference in New Issue
Block a user