1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Added error checking for all calls to flush_relay_log_info() and stmt_done()

This commit is contained in:
Monty
2017-02-05 02:23:49 +02:00
committed by Sergei Golubchik
parent a2de378c00
commit 4bad74e139
7 changed files with 40 additions and 21 deletions

View File

@ -3619,7 +3619,8 @@ bool change_master(THD* thd, Master_info* mi, bool *master_info_added)
in-memory value at restart (thus causing errors, as the old relay log does
not exist anymore).
*/
flush_relay_log_info(&mi->rli);
if (flush_relay_log_info(&mi->rli))
ret= 1;
mysql_cond_broadcast(&mi->data_cond);
mysql_mutex_unlock(&mi->rli.data_lock);