mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.5 merge
This commit is contained in:
@ -3270,7 +3270,6 @@ void my_message_sql(uint error, const char *str, myf MyFlags)
|
||||
DBUG_ASSERT(str != NULL);
|
||||
DBUG_ASSERT(error != 0);
|
||||
|
||||
mysql_audit_general(thd, MYSQL_AUDIT_GENERAL_ERROR, error, str);
|
||||
if (MyFlags & ME_JUST_INFO)
|
||||
{
|
||||
level= MYSQL_ERROR::WARN_LEVEL_NOTE;
|
||||
@ -3293,6 +3292,8 @@ void my_message_sql(uint error, const char *str, myf MyFlags)
|
||||
thd->is_fatal_error= 1;
|
||||
(void) thd->raise_condition(error, NULL, level, str);
|
||||
}
|
||||
else
|
||||
mysql_audit_general(0, MYSQL_AUDIT_GENERAL_ERROR, error, str);
|
||||
|
||||
/* When simulating OOM, skip writing to error log to avoid mtr errors */
|
||||
DBUG_EXECUTE_IF("simulate_out_of_memory", DBUG_VOID_RETURN;);
|
||||
|
Reference in New Issue
Block a user