summaryrefslogtreecommitdiff
path: root/sql/sql_parse.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
commit31997022d79f55922e4915fe649619f2dcc1ab40 (patch)
tree10105129217624e54227a3a1b3e360e045d1f839 /sql/sql_parse.cc
parentb33704f8a0c7e8adf260924b418f8d50d92c62b6 (diff)
downloadmariadb-git-31997022d79f55922e4915fe649619f2dcc1ab40.tar.gz
Code review for Bug#43587 Putting event_scheduler=1 in init SQL file crashes
mysqld
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 542ce992537..49830c1712e 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -533,8 +533,9 @@ end:
#ifndef EMBEDDED_LIBRARY
(void) pthread_mutex_lock(&LOCK_thread_count);
thread_count--;
- (void) pthread_mutex_unlock(&LOCK_thread_count);
+ in_bootstrap= FALSE;
(void) pthread_cond_broadcast(&COND_thread_count);
+ (void) pthread_mutex_unlock(&LOCK_thread_count);
my_thread_end();
pthread_exit(0);
#endif