mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Removed some not needed when doing delete thd, which caused warnings about
wrong mutex usage from safe_mutex. Ensure that LOCK_status is always taken before LOCK_thread_count
This commit is contained in:
@@ -1372,10 +1372,11 @@ handle_rpl_parallel_thread(void *arg)
|
||||
thd->reset_db(NULL, 0);
|
||||
thd_proc_info(thd, "Slave worker thread exiting");
|
||||
thd->temporary_tables= 0;
|
||||
|
||||
mysql_mutex_lock(&LOCK_thread_count);
|
||||
THD_CHECK_SENTRY(thd);
|
||||
delete thd;
|
||||
thd->unlink();
|
||||
mysql_mutex_unlock(&LOCK_thread_count);
|
||||
delete thd;
|
||||
|
||||
mysql_mutex_lock(&rpt->LOCK_rpl_thread);
|
||||
rpt->running= false;
|
||||
|
Reference in New Issue
Block a user