Commit 6f42227f authored by unknown's avatar unknown

Bug#19938 Valgrind error (race) in handle_slave_sql()


sql/slave.cc:
  Read the value of rli->events_till_abort only in debug compile
parent 1b32376a
...@@ -3950,11 +3950,13 @@ the slave SQL thread with \"SLAVE START\". We stopped at log \ ...@@ -3950,11 +3950,13 @@ the slave SQL thread with \"SLAVE START\". We stopped at log \
pthread_mutex_unlock(&LOCK_thread_count); pthread_mutex_unlock(&LOCK_thread_count);
pthread_cond_broadcast(&rli->stop_cond); pthread_cond_broadcast(&rli->stop_cond);
#ifndef DBUG_OFF
/* /*
Bug #19938 Valgrind error (race) in handle_slave_sql() Bug #19938 Valgrind error (race) in handle_slave_sql()
Read the value of rli->event_till_abort before releasing the mutex Read the value of rli->event_till_abort before releasing the mutex
*/ */
const int eta= rli->events_till_abort; const int eta= rli->events_till_abort;
#endif
// tell the world we are done // tell the world we are done
pthread_mutex_unlock(&rli->run_lock); pthread_mutex_unlock(&rli->run_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment