mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Embedded mysql fixes.
There is now a mysql_server_init() function which needs to be called at the beginning of the program (and _end() for the end of the program). This routine handles argument parsing for the embedded server. Use the embedded version of mysql_load_file() (ignore the LOCAL argument, since the client and server are the same program). There are now mysql_thread_init/end() functions for the client to use in a multi-threaded app. They are just wrappers for my_thread_init/end().
This commit is contained in:
@ -3263,6 +3263,7 @@ static void get_options(int argc,char **argv)
|
||||
myisam_delay_key_write=1; // Allow use of this
|
||||
my_use_symdir=1; // Use internal symbolic links
|
||||
|
||||
optind = 0; // setup in case getopt() was called previously
|
||||
while ((c=getopt_long(argc,argv,"ab:C:h:#::T::?l::L:O:P:sS::t:u:noVvWI?",
|
||||
long_options, &option_index)) != EOF)
|
||||
{
|
||||
@ -3856,6 +3857,7 @@ static void get_options(int argc,char **argv)
|
||||
use_help();
|
||||
exit(1);
|
||||
}
|
||||
optind = 0; // setup so that getopt_long() can be called again
|
||||
fix_paths();
|
||||
default_table_type_name=ha_table_typelib.type_names[default_table_type-1];
|
||||
default_tx_isolation_name=tx_isolation_typelib.type_names[default_tx_isolation];
|
||||
|
Reference in New Issue
Block a user