mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed crash if max_connections is exceeded. BUG#8996
sql/mysqld.cc: mark the thread as killed in close_connection sql/protocol.cc: don't bother remembering warnings if the thread is dying
This commit is contained in:
@@ -122,8 +122,9 @@ void send_error(THD *thd, uint sql_errno, const char *err)
|
||||
}
|
||||
VOID(net_write_command(net,(uchar) 255, "", 0, (char*) err,length));
|
||||
#endif /* EMBEDDED_LIBRARY*/
|
||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, sql_errno,
|
||||
orig_err ? orig_err : ER(sql_errno));
|
||||
if (!thd->killed)
|
||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, sql_errno,
|
||||
orig_err ? orig_err : ER(sql_errno));
|
||||
thd->is_fatal_error=0; // Error message is given
|
||||
thd->net.report_error= 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user