mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix for using unitialized mutex when running version compiled with --debug
include/mysql_embed.h: Disable shared memory for embedded version libmysqld/lib_sql.cc: Fix for --debug version (init_thread_environment was called in wrong place) sql/log_event.h: Portability fix sql/mysqld.cc: Fix for --debug version (init_thread_environment was called in wrong place) sql/sql_parse.cc: Simply code cleanup
This commit is contained in:
@ -200,12 +200,6 @@ int STDCALL mysql_server_init(int argc, char **argv, char **groups)
|
||||
if (!opt_mysql_tmpdir || !opt_mysql_tmpdir[0])
|
||||
opt_mysql_tmpdir=(char*) P_tmpdir; /* purecov: inspected */
|
||||
|
||||
if (init_thread_environment())
|
||||
{
|
||||
mysql_server_end();
|
||||
return 1;
|
||||
}
|
||||
|
||||
umask(((~my_umask) & 0666));
|
||||
if (init_server_components())
|
||||
{
|
||||
|
Reference in New Issue
Block a user