Code review for Bug#43587 Putting event_scheduler=1 in init SQL file crashes

mysqld
This commit is contained in:
Konstantin Osipov 2009-07-24 20:20:46 +04:00
commit b4bf7dd31e
6 changed files with 60 additions and 27 deletions

View file

@ -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;