diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-07-24 20:20:46 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-07-24 20:20:46 +0400 |
commit | 31997022d79f55922e4915fe649619f2dcc1ab40 (patch) | |
tree | 10105129217624e54227a3a1b3e360e045d1f839 /sql/sql_parse.cc | |
parent | b33704f8a0c7e8adf260924b418f8d50d92c62b6 (diff) | |
download | mariadb-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.cc | 3 |
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 |