summaryrefslogtreecommitdiff
path: root/sql/log_event_old.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-02-05 02:23:49 +0200
committerSergei Golubchik <serg@mariadb.org>2017-02-28 16:10:47 +0100
commit4bad74e13955ee21015c6b8a9d4bd07624924efa (patch)
tree4cdc19790506479ced8062496f7cdb750a912303 /sql/log_event_old.cc
parenta2de378c00c17b358fa784dcca6ab4ac11b56821 (diff)
downloadmariadb-git-4bad74e13955ee21015c6b8a9d4bd07624924efa.tar.gz
Added error checking for all calls to flush_relay_log_info() and stmt_done()
Diffstat (limited to 'sql/log_event_old.cc')
-rw-r--r--sql/log_event_old.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log_event_old.cc b/sql/log_event_old.cc
index 22ef970dab9..8bdb81f5283 100644
--- a/sql/log_event_old.cc
+++ b/sql/log_event_old.cc
@@ -1843,8 +1843,8 @@ int
Old_rows_log_event::do_update_pos(rpl_group_info *rgi)
{
Relay_log_info *rli= rgi->rli;
- DBUG_ENTER("Old_rows_log_event::do_update_pos");
int error= 0;
+ DBUG_ENTER("Old_rows_log_event::do_update_pos");
DBUG_PRINT("info", ("flags: %s",
get_flags(STMT_END_F) ? "STMT_END_F " : ""));
@@ -1856,7 +1856,7 @@ Old_rows_log_event::do_update_pos(rpl_group_info *rgi)
Step the group log position if we are not in a transaction,
otherwise increase the event log position.
*/
- rli->stmt_done(log_pos, thd, rgi);
+ error= rli->stmt_done(log_pos, thd, rgi);
/*
Clear any errors in thd->net.last_err*. It is not known if this is
needed or not. It is believed that any errors that may exist in