diff options
author | unknown <monty@mashka.mysql.fi> | 2002-08-24 05:44:16 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-08-24 05:44:16 +0300 |
commit | d7dc4fce0aa3bed4e1dff3a0d587db7ed328fdad (patch) | |
tree | 1c291b78b8e23fd7562cf7e469a4f2bb2e8f4565 /sql/mini_client.cc | |
parent | 25a1fecce3cdc3cff4f5c92efd3898a76b05ec80 (diff) | |
download | mariadb-git-d7dc4fce0aa3bed4e1dff3a0d587db7ed328fdad.tar.gz |
Give better error from reconnect()
Fixed hang in start_slave_threads() when thread dies quickly.
Docs/manual.texi:
Changelog
client/mysqltest.c:
Indentation cleanup
More DBUG info
libmysql/libmysql.c:
More DBUG info
Give better error from reconnect()
mysql-test/r/rpl_rotate_logs.result:
Update results
mysql-test/t/rpl_log_pos.test:
Fix for fast machines
mysql-test/t/rpl_rotate_logs.test:
Updated test to be more portable
scripts/mysql_zap.sh:
Update for MacOSX
sql/mini_client.cc:
Better error messages from reconnect.
Indentation cleanups
sql/slave.cc:
Fixed hang in start_slave_threads() when thread dies quickly.
sql/slave.h:
Fixed hang in start_slave_threads() when thread dies quickly.
Diffstat (limited to 'sql/mini_client.cc')
-rw-r--r-- | sql/mini_client.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sql/mini_client.cc b/sql/mini_client.cc index 743d522e4bd..5bd88e9b09a 100644 --- a/sql/mini_client.cc +++ b/sql/mini_client.cc @@ -414,10 +414,8 @@ my_bool mc_mysql_reconnect(MYSQL *mysql) mysql->db, mysql->port, mysql->unix_socket, mysql->client_flag, mysql->net.read_timeout)) { -#ifdef NOT_USED - mysql->net.last_errno=CR_RECONNECT_FAILED; - strmov(mysql->net.last_error, ER(mysql->net.last_errno)); -#endif + mysql->net.last_errno= tmp_mysql.net.last_errno; + strmov(mysql->net.last_error, tmp_mysql.net.last_error); DBUG_RETURN(1); } tmp_mysql.free_me=mysql->free_me; @@ -888,7 +886,6 @@ mc_mysql_close(MYSQL *mysql) /* Clear pointers for better safety */ mysql->host_info=mysql->user=mysql->passwd=mysql->db=0; bzero((char*) &mysql->options,sizeof(mysql->options)); - mysql->net.vio = 0; #ifdef HAVE_OPENSSL mysql_ssl_clear(mysql); #endif /* HAVE_OPENSSL */ @@ -976,13 +973,13 @@ mc_unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields, DBUG_RETURN(result); } -int -mc_mysql_send_query(MYSQL* mysql, const char* query, uint length) +int mc_mysql_send_query(MYSQL* mysql, const char* query, uint length) { return mc_simple_command(mysql, COM_QUERY, query, length, 1); } -int mc_mysql_read_query_result(MYSQL *mysql) + +int mc_mysql_read_query_result(MYSQL *mysql) { uchar *pos; ulong field_count; |