Fix purge_relay_logs post merge

slave_skip_counter must not be reset to 0 during purge_relay_logs. See
MDEV-4937 as to when this change happened.
This commit is contained in:
Vicențiu Ciorbaru 2017-07-27 16:20:26 +03:00
parent 7134afa22e
commit af40426fcd

View file

@ -1167,7 +1167,6 @@ int purge_relay_logs(Relay_log_info* rli, THD *thd, bool just_reset,
DBUG_ASSERT(rli->slave_running == 0);
DBUG_ASSERT(rli->mi->slave_running == 0);
}
rli->slave_skip_counter=0;
mysql_mutex_lock(&rli->data_lock);
/*