diff options
author | Monty <monty@mariadb.org> | 2017-02-05 02:23:49 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-28 16:10:47 +0100 |
commit | 4bad74e13955ee21015c6b8a9d4bd07624924efa (patch) | |
tree | 4cdc19790506479ced8062496f7cdb750a912303 /sql/log_event_old.cc | |
parent | a2de378c00c17b358fa784dcca6ab4ac11b56821 (diff) | |
download | mariadb-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.cc | 4 |
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 |