Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
046418ad
Commit
046418ad
authored
Apr 28, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added calls to cleanup_mutexes() for embedded library.
parent
3a3a91ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+4
-2
No files found.
libmysqld/lib_sql.cc
View file @
046418ad
...
...
@@ -47,6 +47,7 @@ extern "C" void unireg_clear(int exit_code)
{
DBUG_ENTER
(
"unireg_clear"
);
clean_up
(
!
opt_help
&&
(
exit_code
||
!
opt_bootstrap
));
/* purecov: inspected */
clean_up_mutexes
();
my_end
(
opt_endinfo
?
MY_CHECK_ERROR
|
MY_GIVE_INFO
:
0
);
DBUG_VOID_RETURN
;
}
...
...
@@ -576,6 +577,7 @@ void end_embedded_server()
my_free
((
char
*
)
copy_arguments_ptr
,
MYF
(
MY_ALLOW_ZERO_PTR
));
copy_arguments_ptr
=
0
;
clean_up
(
0
);
clean_up_mutexes
();
}
...
...
sql/mysqld.cc
View file @
046418ad
...
...
@@ -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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment