1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

BUG#11753923-SQL THREAD CRASHES ON DISK FULL

Problem:If Disk becomes full while writing into the binlog,
then the server instance hangs till someone frees the space.
After user frees up the disk space, mysql server crashes
with an assert (m_status != DA_EMPTY)

Analysis: wait_for_free_space is being called in an
infinite loop i.e., server instance will hang until
someone frees up the space. So there is no need to
set status bit in diagnostic area.

Fix: Replace my_error/my_printf_error with
sql_print_warning() which prints the warning in error log.
This commit is contained in:
Venkatesh Duggirala
2013-01-02 16:31:58 +05:30
parent f5f40badc5
commit c72f687f21
5 changed files with 47 additions and 6 deletions

View File

@ -4375,6 +4375,7 @@ we force server id to 2, but this MySQL server will not act as a slave.");
After this we can't quit by a simple unireg_abort
*/
error_handler_hook= my_message_sql;
sql_print_warning_hook = sql_print_warning;
start_signal_handler(); // Creates pidfile
if (mysql_rm_tmp_tables() || acl_init(opt_noacl) ||