mirror of
https://github.com/MariaDB/server.git
synced 2025-06-12 01:53:02 +03:00
fix for bug #7285: Disable start of embedded server when need to
connect to an external server with mysqld. libmysql/libmysql.c: fix for bug #7285: Disable start of embedded server when need to connect to an external server with libmysqld. Calling mysql_server_init with a negative value for argc will not start the embedded server.
This commit is contained in:
@ -158,7 +158,8 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)),
|
||||
(void) signal(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
result= init_embedded_server(argc, argv, groups);
|
||||
if (argc > -1)
|
||||
result= init_embedded_server(argc, argv, groups);
|
||||
#endif
|
||||
}
|
||||
#ifdef THREAD
|
||||
|
Reference in New Issue
Block a user