diff options
author | unknown <svoj@mysql.com/june.mysql.com> | 2007-11-09 16:05:01 +0400 |
---|---|---|
committer | unknown <svoj@mysql.com/june.mysql.com> | 2007-11-09 16:05:01 +0400 |
commit | 5eafd5b12291c30179b4249c2c6b9decca6d5bdd (patch) | |
tree | 8bd71a7336b97dbc37f5e488f279239ee4595d0c /include | |
parent | ac9fea61e85c0d8fe12f0c91e2286eee55ecd9f6 (diff) | |
download | mariadb-git-5eafd5b12291c30179b4249c2c6b9decca6d5bdd.tar.gz |
BUG#29083 - test suite times out on OS X 64bit - also in older releases
The "mysql client in mysqld"(which is used by
replication and federated) should use alarms instead of setting
socket timeout value if the rest of the server uses alarm. By
always calling 'my_net_set_write_timeout'
or 'net_set_read_timeout' when changing the timeout value(s), the
selection whether to use alarms or timeouts will be handled by
ifdef's in those two functions.
This is minimal backport of patch for BUG#26664, which was pushed
to 5.0 and up.
Affects 4.1 only.
include/mysql_com.h:
Move the net_set_*_timeout function declarations to mysql_com.h
sql-common/client.c:
Use my_net_read_timeout or my_net_write_timeout when setting the timeouts
sql/mysql_priv.h:
Move the net_set_*_timeout function declarations to mysql_com.h
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql_com.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h index 56c7f7d2ab5..daeb540c7c8 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -291,6 +291,11 @@ my_bool net_write_command(NET *net,unsigned char command, int net_real_write(NET *net,const char *packet,unsigned long len); unsigned long my_net_read(NET *net); +#ifdef _global_h +void net_set_write_timeout(NET *net, uint timeout); +void net_set_read_timeout(NET *net, uint timeout); +#endif + /* The following function is not meant for normal usage Currently it's used internally by manager.c |