mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merged BUG#12574820 from 5.1 to 5.5
Two conflicts resolved manually: Text conflict in sql/log.cc Text conflict in sql/mysqld.cc
This commit is contained in:
@ -2070,6 +2070,12 @@ void unlink_thd(THD *thd)
|
||||
thd_cleanup(thd);
|
||||
dec_connection_count();
|
||||
mysql_mutex_lock(&LOCK_thread_count);
|
||||
/*
|
||||
Used by binlog_reset_master. It would be cleaner to use
|
||||
DEBUG_SYNC here, but that's not possible because the THD's debug
|
||||
sync feature has been shut down at this point.
|
||||
*/
|
||||
DBUG_EXECUTE_IF("sleep_after_lock_thread_count_before_delete_thd", sleep(5););
|
||||
delete_thd(thd);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
Reference in New Issue
Block a user