diff options
author | unknown <hf@deer.(none)> | 2003-10-21 16:06:26 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-10-21 16:06:26 +0500 |
commit | 9a4aa99769b29cb4084b3b16d2bfb7067d817d2c (patch) | |
tree | c11b9285571f1cabebd83afdaa997c64dcb2062a /sql/mysqld.cc | |
parent | 8c2d17c777153881d9f185a7cdb0d5b015cdda38 (diff) | |
parent | 8d94e500e025fb5626df12c8183e8ab14c74e624 (diff) | |
download | mariadb-git-9a4aa99769b29cb4084b3b16d2bfb7067d817d2c.tar.gz |
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.clean
sql/mysql_priv.h:
Auto merged
sql/mysqld.cc:
Auto merged
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 8a8c3a6c32d..da7d3df0251 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -851,6 +851,7 @@ extern "C" sig_handler print_signal_warning(int sig) (Mac OS X) we have to call exit() instead if pthread_exit(). */ +#ifndef EMBEDDED_LIBRARY void unireg_end(void) { clean_up(1); @@ -862,7 +863,6 @@ void unireg_end(void) #endif } - extern "C" void unireg_abort(int exit_code) { DBUG_ENTER("unireg_abort"); @@ -874,7 +874,7 @@ extern "C" void unireg_abort(int exit_code) my_end(opt_endinfo ? MY_CHECK_ERROR | MY_GIVE_INFO : 0); exit(exit_code); /* purecov: inspected */ } - +#endif void clean_up(bool print_message) { @@ -1024,6 +1024,7 @@ static void set_ports() } } +#ifndef EMBEDDED_LIBRARY /* Change to run as another user if started with --user */ static void set_user(const char *user) @@ -1106,7 +1107,6 @@ static void set_root(const char *path) #endif } - static void server_init(void) { struct sockaddr_in IPaddr; @@ -1257,6 +1257,7 @@ static void server_init(void) DBUG_VOID_RETURN; } +#endif /*!EMBEDDED_LIBRARY*/ void yyerror(const char *s) { @@ -2120,7 +2121,8 @@ static int init_common_variables(const char *conf_file_name, int argc, open_files_limit= 0; /* Can't set or detect limit */ #endif unireg_init(opt_specialflag); /* Set up extern variabels */ - init_errmessage(); /* Read error messages from file */ + if (init_errmessage()) /* Read error messages from file */ + return 1; init_client_errs(); lex_init(); item_init(); @@ -2233,6 +2235,7 @@ static void init_ssl() static int init_server_components() { + DBUG_ENTER("init_server_components"); table_cache_init(); hostname_cache_init(); query_cache_result_size_limit(query_cache_limit); @@ -2324,7 +2327,7 @@ Now disabling --log-slave-updates."); init_max_user_conn(); init_update_queries(); - return 0; + DBUG_RETURN(0); } @@ -5604,8 +5607,10 @@ static void get_options(int argc,char **argv) /* Set global MyISAM variables from delay_key_write_options */ fix_delay_key_write((THD*) 0, OPT_GLOBAL); +#ifndef EMBEDDED_LIBRARY if (mysqld_chroot) set_root(mysqld_chroot); +#endif fix_paths(); /* |