1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Faster log::write() call, memory leak fix, flush master fix.

This commit is contained in:
monty@donna.mysql.com
2000-09-16 04:27:21 +03:00
parent a99c1757be
commit 751f2d1f16
26 changed files with 321 additions and 205 deletions

View File

@@ -244,14 +244,14 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
sprintf(name,ER(ER_LOAD_INFO),info.records,info.deleted,
info.records-info.copied,thd->cuted_fields);
send_ok(&thd->net,info.copied+info.deleted,0L,name);
mysql_update_log.write(thd->query,thd->query_length);
mysql_update_log.write(thd,thd->query,thd->query_length);
if(!read_file_from_client)
{
ex->skip_lines = save_skip_lines;
Load_log_event qinfo(thd, ex, table->table_name, fields, handle_duplicates);
mysql_bin_log.write(&qinfo);
}
if (!read_file_from_client)
{
ex->skip_lines = save_skip_lines;
Load_log_event qinfo(thd, ex, table->table_name, fields, handle_duplicates);
mysql_bin_log.write(&qinfo);
}
DBUG_RETURN(0);
}