Commit c5c0caec authored by ramil@mysql.com's avatar ramil@mysql.com

Fix for bug #16900: Crash during query "reap" on OS X.

parent 04d6b7fa
...@@ -426,11 +426,12 @@ void THD::awake(bool prepare_to_die) ...@@ -426,11 +426,12 @@ void THD::awake(bool prepare_to_die)
THD_CHECK_SENTRY(this); THD_CHECK_SENTRY(this);
safe_mutex_assert_owner(&LOCK_delete); safe_mutex_assert_owner(&LOCK_delete);
thr_alarm_kill(real_id);
if (prepare_to_die) if (prepare_to_die)
killed = 1; killed = 1;
thr_alarm_kill(real_id);
#ifdef SIGNAL_WITH_VIO_CLOSE #ifdef SIGNAL_WITH_VIO_CLOSE
close_active_vio(); else
close_active_vio();
#endif #endif
if (mysys_var) if (mysys_var)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment