mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
cleanup: THD::abort_current_cond_wait()
* reuse the loop in THD::abort_current_cond_wait, don't duplicate it * find_thread_by_id should return whatever it has found, it's the caller's task not to kill COM_DAEMON (if the caller's a killer) and other minor changes
This commit is contained in:
@ -3322,6 +3322,7 @@ public:
|
||||
if (wsrep_on_local)
|
||||
mysql_mutex_unlock(&LOCK_thd_data);
|
||||
}
|
||||
void abort_current_cond_wait(bool force);
|
||||
|
||||
/** Disconnect the associated communication endpoint. */
|
||||
void disconnect();
|
||||
@ -4061,8 +4062,7 @@ public:
|
||||
mysql_mutex_lock(&LOCK_thd_kill);
|
||||
int err= killed_errno();
|
||||
if (err)
|
||||
my_message(err, killed_err ? killed_err->msg : ER_THD(this, err),
|
||||
MYF(0));
|
||||
my_message(err, killed_err ? killed_err->msg : ER_THD(this, err), MYF(0));
|
||||
mysql_mutex_unlock(&LOCK_thd_kill);
|
||||
}
|
||||
/* return TRUE if we will abort query if we make a warning now */
|
||||
|
Reference in New Issue
Block a user