summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-17 15:05:50 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-12-17 15:05:50 +0200
commit2969956def0cec89d2e498083dc88ecb5b94291b (patch)
treecf85dbae9b4ee145b5311bbaac487c5fd4b66087 /sql/sql_load.cc
parent3cdd4ba388310f49d0e57089b9923f33dbdd1606 (diff)
parent13c6af0eab384632e3cb954e5ba7d7c51d537d4f (diff)
downloadmariadb-git-2969956def0cec89d2e498083dc88ecb5b94291b.tar.gz
merge
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index a0f9ebbe39b..c227fe69b62 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -568,6 +568,13 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
transactional_table,
errcode);
}
+
+ /*
+ Flushing the IO CACHE while writing the execute load query log event
+ may result in error (for instance, because the max_binlog_size has been
+ reached, and rotation of the binary log failed).
+ */
+ error= error || mysql_bin_log.get_log_file()->error;
}
if (error)
goto err;