mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
Bug#19938 Valgrind error (race) in handle_slave_sql()
sql/slave.cc: Read the value of rli->events_till_abort only in debug compile
This commit is contained in:
parent
1b32376ab8
commit
6f42227f31
1 changed files with 2 additions and 0 deletions
|
|
@ -3950,11 +3950,13 @@ the slave SQL thread with \"SLAVE START\". We stopped at log \
|
|||
pthread_mutex_unlock(&LOCK_thread_count);
|
||||
pthread_cond_broadcast(&rli->stop_cond);
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
/*
|
||||
Bug #19938 Valgrind error (race) in handle_slave_sql()
|
||||
Read the value of rli->event_till_abort before releasing the mutex
|
||||
*/
|
||||
const int eta= rli->events_till_abort;
|
||||
#endif
|
||||
|
||||
// tell the world we are done
|
||||
pthread_mutex_unlock(&rli->run_lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue