Safety fix: lock binlog_end_pos before calling signal_update
The mutex is needed to ensure that sql thread should not not miss the error signal.
This commit is contained in:
parent
458d5ed8aa
commit
f71bed08ca
@ -256,7 +256,9 @@ signal_error_to_sql_driver_thread(THD *thd, rpl_group_info *rgi, int err)
|
||||
rgi->rli->stop_for_until= false;
|
||||
mysql_mutex_lock(rgi->rli->relay_log.get_log_lock());
|
||||
mysql_mutex_unlock(rgi->rli->relay_log.get_log_lock());
|
||||
rgi->rli->relay_log.lock_binlog_end_pos();
|
||||
rgi->rli->relay_log.signal_update();
|
||||
rgi->rli->relay_log.unlock_binlog_end_pos();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user