summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-04-28 23:58:00 +0300
committerMichael Widenius <monty@askmonty.org>2011-04-28 23:58:00 +0300
commit046418ad956c98c3788d79650fcb50479844df3b (patch)
treec7992090ef03b9b20af5266c589941ddd1145be7 /sql
parent3a3a91ff051abe859589e33fab4b5588e325d55b (diff)
downloadmariadb-git-046418ad956c98c3788d79650fcb50479844df3b.tar.gz
Added calls to cleanup_mutexes() for embedded library.
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 30ce99280a0..51ce881ee78 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -1464,6 +1464,7 @@ static void wait_for_signal_thread_to_end()
#endif
}
+#endif /*EMBEDDED_LIBRARY*/
static void clean_up_mutexes()
{
@@ -1486,7 +1487,9 @@ static void clean_up_mutexes()
(void) pthread_mutex_destroy(&LOCK_bytes_received);
(void) pthread_mutex_destroy(&LOCK_user_conn);
(void) pthread_mutex_destroy(&LOCK_connection_count);
+#ifndef EMBEDDED_LIBRARY
Events::destroy_mutexes();
+#endif
#ifdef HAVE_OPENSSL
(void) pthread_mutex_destroy(&LOCK_des_key_file);
#ifndef HAVE_YASSL
@@ -1518,8 +1521,6 @@ static void clean_up_mutexes()
DBUG_VOID_RETURN;
}
-#endif /*EMBEDDED_LIBRARY*/
-
/**
Register order of mutex for wrong mutex deadlock detector
@@ -8037,6 +8038,7 @@ static void usage(void)
puts("\
Copyright (C) 2000-2008 MySQL AB, by Monty and others.\n\
Copyright (C) 2008 Sun Microsystems, Inc.\n\
+Copyright (C) 2009-2011 Monty Program Ab.\n\
This software comes with ABSOLUTELY NO WARRANTY. This is free software,\n\
and you are welcome to modify and redistribute it under the GPL license\n\n\
Starts the MySQL database server.\n");