mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Code review for Bug#43587 Putting event_scheduler=1 in init SQL file crashes
mysqld
This commit is contained in:
parent
c24cccabdd
commit
b4bf7dd31e
6 changed files with 60 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue