diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-14 19:50:56 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-14 19:50:56 +0300 |
commit | af19fa462856d517d3a35737389f432fe071a4f6 (patch) | |
tree | ce2c2bb8f39cfadb29246ea7e2859e120d65f0ec /tools | |
parent | cca506652121877c21e973baae7c815a8f005e34 (diff) | |
download | mariadb-git-af19fa462856d517d3a35737389f432fe071a4f6.tar.gz |
Fixed bug in UNION
Fixed replication bug in load_master_data
BitKeeper/deleted/.del-global.h~e80d28157acfdcb5:
Delete: include/global.h
Docs/manual.texi:
Cleaned up "Things to do in 4.0"
mysql-test/r/union.result:
New test
mysql-test/t/union.test:
New test
mysys/my_lib.c:
Cleanup
sql/mysql_priv.h:
Fixed replication bug load_master_data
sql/sql_base.cc:
Fixed bug in UNION
sql/sql_db.cc:
Fixed replication bug load_master_data
sql/sql_parse.cc:
Fixed replication bug load_master_data
sql/sql_repl.cc:
Fixed replication bug load_master_data
sql/sql_union.cc:
Fixed bug in UNION
tools/mysqlmanager.c:
Portability fix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mysqlmanager.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index 29ff1d50d6c..5b32cc9154e 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -22,25 +22,21 @@ #include <my_global.h> #include <my_sys.h> +#include <my_pthread.h> +#include <m_ctype.h> #include <m_string.h> #include <mysql.h> #include <mysql_version.h> -#include <m_ctype.h> -#include <my_config.h> +#include <mysqld_error.h> #include <my_dir.h> #include <hash.h> -#include <mysqld_error.h> -#include <stdio.h> -#include <stdlib.h> #include <getopt.h> #include <stdarg.h> +#include <violite.h> +#include <signal.h> #include <sys/stat.h> -#include <sys/types.h> #include <sys/wait.h> -#include <unistd.h> #include <errno.h> -#include <violite.h> -#include <my_pthread.h> #define MANAGER_VERSION "1.0" #define MANAGER_GREETING "MySQL Server Management Daemon v." ## \ @@ -827,7 +823,7 @@ LOG_MSG_FUNC(info,INFO) #ifndef DBUG_OFF LOG_MSG_FUNC(debug,DEBUG) #else -inline void log_debug(char* __attribute__((unused)) fmt,...) {} +void log_debug(char* __attribute__((unused)) fmt,...) {} #endif static pthread_handler_decl(process_launcher_messages, @@ -905,6 +901,7 @@ static pthread_handler_decl(process_connection,arg) } manager_thd_free(thd); pthread_exit(0); + return 0; /* Don't get cc warning */ } static void client_msg_raw(Vio* vio, int err_code, int pre, const char* fmt, @@ -1151,13 +1148,15 @@ static int run_server_loop() { pthread_t th; struct manager_thd *thd; - int client_sock,len; + int client_sock; + uint len; Vio* vio; for (;!shutdown_requested;) { len=sizeof(struct sockaddr_in); - if ((client_sock=accept(manager_sock,(struct sockaddr*)&manager_addr,&len))<0) + if ((client_sock=accept(manager_sock,(struct sockaddr*)&manager_addr, + &len)) <0) { if (shutdown_requested) break; @@ -1531,7 +1530,7 @@ static int daemonize() int main(int argc, char** argv) { char c; - stack_bottom=&c; + stack_bottom= (uchar *) &c; MY_INIT(argv[0]); errfp = stderr; parse_args(argc,argv); |