mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Manual merge from mysql-5.1-bugteam to mysql-trunk-merge.
conflicts: conflict mysys/safemalloc.c conflict sql/mysqld.cc conflict sql/sp.cc conflict sql/sql_lex.cc conflict sql/sql_lex.h conflict sql/sql_parse.cc conflict sql/sql_prepare.cc
This commit is contained in:
@ -24,8 +24,6 @@
|
||||
extern "C" {
|
||||
void sql_alloc_error_handler(void)
|
||||
{
|
||||
sql_print_error("%s", ER(ER_OUT_OF_RESOURCES));
|
||||
|
||||
THD *thd= current_thd;
|
||||
if (thd)
|
||||
{
|
||||
@ -53,6 +51,12 @@ extern "C" {
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Skip writing to the error log to avoid mtr complaints */
|
||||
DBUG_EXECUTE_IF("simulate_out_of_memory", return;);
|
||||
|
||||
sql_print_error("%s", ER(ER_OUT_OF_RESOURCES));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user