1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-12 12:25:37 +03:00

A clean-up for DEV-4890 Valgrind warnings on shutdown on a build with openSSL

This commit is contained in:
Alexander Barkov
2013-10-21 13:34:18 +04:00
parent de4ca539b8
commit 11d141004a
2 changed files with 5 additions and 1 deletions

View File

@@ -2094,7 +2094,7 @@ bool one_thread_per_connection_end(THD *thd, bool put_in_cache)
/* It's safe to broadcast outside a lock (COND... is not deleted here) */
DBUG_PRINT("signal", ("Broadcasting COND_thread_count"));
DBUG_LEAVE; // Must match DBUG_ENTER()
#ifndef EMBEDDED_LIBRARY
#if defined(HAVE_OPENSSL) && !defined(EMBEDDED_LIBRARY)
ERR_remove_state(0);
#endif
my_thread_end();

View File

@@ -2854,7 +2854,9 @@ err:
DBUG_LEAVE; // Must match DBUG_ENTER()
my_thread_end();
#ifdef HAVE_OPENSSL
ERR_remove_state(0);
#endif
pthread_exit(0);
return 0; // Avoid compiler warnings
}
@@ -3251,7 +3253,9 @@ the slave SQL thread with \"SLAVE START\". We stopped at log \
DBUG_LEAVE; // Must match DBUG_ENTER()
my_thread_end();
#ifdef HAVE_OPENSSL
ERR_remove_state(0);
#endif
pthread_exit(0);
return 0; // Avoid compiler warnings
}