mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
fixed logging bug in generate_table()
added message on all segfaults, and numeric backtrace of Linux i386 introduced a bug into ENCRYPT() to test backtrace - will clean up before push, but need this commit locally to pull on slave repositories to do further testing sql/item_strfunc.cc: temporarily introduced coredump bug into encrypt -- will not push, don't worry, just need to commit locally to test if my backtrace magic works on non-debugging binaries sql/mysqld.cc: changed SIGSEGV handler to execute on all platforms. write_core() invoked only if you do --core-file, but a message is printed regardless On i386 Linux, attempt a numeric backtrace sql/sql_delete.cc: Fixed logging bug - must log before send_ok(), otherwise, we may mess up error code in the query event if send_ok() fails.
This commit is contained in:
@@ -106,13 +106,13 @@ int generate_table(THD *thd, TABLE_LIST *table_list, TABLE *locked_table)
|
||||
}
|
||||
if (!error)
|
||||
{
|
||||
send_ok(&thd->net); // This should return record count
|
||||
mysql_update_log.write(thd,thd->query,thd->query_length);
|
||||
if (mysql_bin_log.is_open())
|
||||
{
|
||||
Query_log_event qinfo(thd, thd->query);
|
||||
mysql_bin_log.write(&qinfo);
|
||||
}
|
||||
send_ok(&thd->net); // This should return record count
|
||||
}
|
||||
DBUG_RETURN(error ? -1 : 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user