diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-08-07 17:02:51 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-08-07 17:02:51 -0400 |
commit | 5b9dd459fb94d44b8852870e89a64d0f953f2eb3 (patch) | |
tree | 187a741f80135fe3c565419ae30c6b93bb8bfdfc /sql/slave.cc | |
parent | af2f7ce3f915c4686ef04294b00c6f4885503f5e (diff) | |
parent | fa51f70dc68fe2f3afe943e2c81fcbdb34f16cad (diff) | |
download | mariadb-git-5b9dd459fb94d44b8852870e89a64d0f953f2eb3.tar.gz |
Merge tag 'mariadb-5.5.45' into 5.5-galera
Diffstat (limited to 'sql/slave.cc')
-rw-r--r-- | sql/slave.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 8ecdb484dbf..4636cb330e5 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -3531,9 +3531,7 @@ pthread_handler_t handle_slave_sql(void *arg) rli->clear_error(); //tell the I/O thread to take relay_log_space_limit into account from now on - mysql_mutex_lock(&rli->log_space_lock); rli->ignore_log_space_limit= 0; - mysql_mutex_unlock(&rli->log_space_lock); rli->trans_retries= 0; // start from "no error" DBUG_PRINT("info", ("rli->trans_retries: %lu", rli->trans_retries)); @@ -5235,14 +5233,8 @@ static Log_event* next_event(Relay_log_info* rli) rli->ignore_log_space_limit= true; } - /* - If the I/O thread is blocked, unblock it. Ok to broadcast - after unlock, because the mutex is only destroyed in - ~Relay_log_info(), i.e. when rli is destroyed, and rli will - not be destroyed before we exit the present function. - */ - mysql_mutex_unlock(&rli->log_space_lock); mysql_cond_broadcast(&rli->log_space_cond); + mysql_mutex_unlock(&rli->log_space_lock); // Note that wait_for_update_relay_log unlocks lock_log ! rli->relay_log.wait_for_update_relay_log(rli->sql_thd); // re-acquire data lock since we released it earlier |