mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fix an assert on AIX 5.2, 64bit. COND_queue_state wasn't
initialized prior to usage as well as deinitialized on shutdown. sql/event_queue.cc: Deinitialize and initialize COND_queue_state
This commit is contained in:
@@ -101,6 +101,7 @@ void
|
||||
Event_queue::init_mutexes()
|
||||
{
|
||||
pthread_mutex_init(&LOCK_event_queue, MY_MUTEX_INIT_FAST);
|
||||
pthread_cond_init(&COND_queue_state, NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -115,6 +116,7 @@ void
|
||||
Event_queue::deinit_mutexes()
|
||||
{
|
||||
pthread_mutex_destroy(&LOCK_event_queue);
|
||||
pthread_cond_destroy(&COND_queue_state);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user