mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
laptop commit
BUILD/compile-pentium-debug-no-bdb: forgot to install BDB on my laptop, needed to have this sql/log.cc: fixed initialization warning sql/sql_insert.cc: delayed insert was getting logged on failure. To make things worse, all delayed inserts were being logged with query_length=0 sql/sql_repl.cc: fixed compiler warnings
This commit is contained in:
@@ -1089,12 +1089,14 @@ bool delayed_insert::handle_inserts(void)
|
||||
pthread_mutex_lock(&LOCK_delayed_status);
|
||||
delayed_insert_errors++;
|
||||
pthread_mutex_unlock(&LOCK_delayed_status);
|
||||
row->log_query = 0;
|
||||
}
|
||||
if (row->query && row->log_query)
|
||||
{
|
||||
mysql_update_log.write(&thd,row->query, row->query_length);
|
||||
if (mysql_bin_log.is_open())
|
||||
{
|
||||
thd.query_length = row->query_length;
|
||||
Query_log_event qinfo(&thd, row->query);
|
||||
mysql_bin_log.write(&qinfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user