1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Bug #45058 init_available_charsets uses double checked locking

A client doing multiple mysql_library_init() and
mysql_library_end() calls over the lifetime of the process may
experience lost character set data, potentially even a
SIGSEGV.

This patch reinstates the reloading of character set data when
a mysql_library_init() is done after a mysql_library_end().
This commit is contained in:
Staale Smedseng
2010-02-26 15:30:14 +01:00
parent ca6691533a
commit 600a283689
5 changed files with 9 additions and 1 deletions

View File

@ -211,6 +211,7 @@ void STDCALL mysql_server_end()
}
else
{
free_charsets();
mysql_thread_end();
}