diff options
author | monty@donna.mysql.com <> | 2000-09-16 04:27:21 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-16 04:27:21 +0300 |
commit | 751f2d1f160a6ba6be4ee93ddf308f552527c254 (patch) | |
tree | 6e20280a8abcc28d14385983250a3e1823639028 /sql/sql_load.cc | |
parent | a99c1757be3ad053437a494442774227d61defbe (diff) | |
download | mariadb-git-751f2d1f160a6ba6be4ee93ddf308f552527c254.tar.gz |
Faster log::write() call, memory leak fix, flush master fix.
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 145bbec4d88..ef64b5e3bfa 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -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); } |