mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
Fix for bug#28075 COM_DEBUG crashes mysqld
Uninitialized in the constructor member variables were pointing to nirvana and causing a crash when debug information of the Event Scheduler was dumped in result to COM_DEBUG packet sent to the server. sql/event_queue.cc: Initialize member variables or they will point to nirvana and could possible cause a crash during dumping of debug information. sql/event_queue.h: remove unneeded line sql/event_scheduler.cc: Initialize member variables or they will point to nirvana and could possible cause a crash during dumping of debug information. sql/event_scheduler.h: remove unneeded state
This commit is contained in:
parent
3d01594f34
commit
3da4eef700
4 changed files with 19 additions and 9 deletions
|
|
@ -42,7 +42,6 @@ Event_db_repository *Event_worker_thread::db_repository;
|
|||
static
|
||||
const LEX_STRING scheduler_states_names[] =
|
||||
{
|
||||
{ C_STRING_WITH_LEN("UNINITIALIZED") },
|
||||
{ C_STRING_WITH_LEN("INITIALIZED") },
|
||||
{ C_STRING_WITH_LEN("RUNNING") },
|
||||
{ C_STRING_WITH_LEN("STOPPING") }
|
||||
|
|
@ -331,9 +330,15 @@ end:
|
|||
|
||||
|
||||
Event_scheduler::Event_scheduler(Event_queue *queue_arg)
|
||||
:state(UNINITIALIZED),
|
||||
:state(INITIALIZED),
|
||||
scheduler_thd(NULL),
|
||||
queue(queue_arg),
|
||||
mutex_last_locked_at_line(0),
|
||||
mutex_last_unlocked_at_line(0),
|
||||
mutex_last_locked_in_func("n/a"),
|
||||
mutex_last_unlocked_in_func("n/a"),
|
||||
mutex_scheduler_data_locked(FALSE),
|
||||
waiting_on_cond(FALSE),
|
||||
started_events(0)
|
||||
{
|
||||
pthread_mutex_init(&LOCK_scheduler_state, MY_MUTEX_INIT_FAST);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue