summaryrefslogtreecommitdiff
path: root/sql/event_queue.cc
diff options
context:
space:
mode:
authorunknown <andrey@example.com>2006-09-14 23:25:59 +0200
committerunknown <andrey@example.com>2006-09-14 23:25:59 +0200
commit2e5837355bae31e46c612ff3e3beb679e3a8ae63 (patch)
tree8a95506daf3983075ec49415575a1283d9e10003 /sql/event_queue.cc
parent2d8bd8767527864e4b9b2328e3d9b8d4bf676e4a (diff)
downloadmariadb-git-2e5837355bae31e46c612ff3e3beb679e3a8ae63.tar.gz
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
Diffstat (limited to 'sql/event_queue.cc')
-rw-r--r--sql/event_queue.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/event_queue.cc b/sql/event_queue.cc
index 539d0ab2734..527a59018a8 100644
--- a/sql/event_queue.cc
+++ b/sql/event_queue.cc
@@ -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);
}