summaryrefslogtreecommitdiff
path: root/sql/event_scheduler.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-07-24 20:20:46 +0400
committerKonstantin Osipov <kostja@sun.com>2009-07-24 20:20:46 +0400
commitb4bf7dd31e39cd98f5794e4d7ef71cf03d0669dd (patch)
tree10105129217624e54227a3a1b3e360e045d1f839 /sql/event_scheduler.cc
parentc24cccabdda8fad2117e3dea39e4de3c7feb3157 (diff)
downloadmariadb-git-b4bf7dd31e39cd98f5794e4d7ef71cf03d0669dd.tar.gz
Code review for Bug#43587 Putting event_scheduler=1 in init SQL file crashes
mysqld
Diffstat (limited to 'sql/event_scheduler.cc')
-rw-r--r--sql/event_scheduler.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc
index d9d010783e8..28c574bfd24 100644
--- a/sql/event_scheduler.cc
+++ b/sql/event_scheduler.cc
@@ -158,6 +158,7 @@ deinit_event_thread(THD *thd)
thread_count--;
thread_running--;
delete thd;
+ pthread_cond_broadcast(&COND_thread_count);
pthread_mutex_unlock(&LOCK_thread_count);
}
@@ -418,6 +419,7 @@ Event_scheduler::start()
thread_count--;
thread_running--;
delete new_thd;
+ pthread_cond_broadcast(&COND_thread_count);
pthread_mutex_unlock(&LOCK_thread_count);
}
end:
@@ -550,6 +552,7 @@ error:
thread_count--;
thread_running--;
delete new_thd;
+ pthread_cond_broadcast(&COND_thread_count);
pthread_mutex_unlock(&LOCK_thread_count);
}
delete event_name;