mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 02:35:29 +02:00
Make killing of threads safer
Docs/manual.texi: Changelog sql/sql_insert.cc: Fix problem with INSERT DELAYED during shutdown
This commit is contained in:
parent
4295917682
commit
9591abbd39
10 changed files with 36 additions and 45 deletions
|
|
@ -326,11 +326,9 @@ public:
|
|||
const char* msg)
|
||||
{
|
||||
const char* old_msg = proc_info;
|
||||
pthread_mutex_lock(&mysys_var->mutex);
|
||||
mysys_var->current_mutex = mutex;
|
||||
mysys_var->current_cond = cond;
|
||||
proc_info = msg;
|
||||
pthread_mutex_unlock(&mysys_var->mutex);
|
||||
return old_msg;
|
||||
}
|
||||
inline void exit_cond(const char* old_msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue