diff options
author | msvensson@pilot.mysql.com <> | 2007-01-29 14:31:48 +0100 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2007-01-29 14:31:48 +0100 |
commit | 7eaa82ea38e1a9f0598ecfc88439583b51567e64 (patch) | |
tree | 439ceec10fe0ab45b030eb00f2e47e06330862a3 /sql/sql_repl.cc | |
parent | 29be5ce83641ff65adc7f2059efb0e5adec1079c (diff) | |
download | mariadb-git-7eaa82ea38e1a9f0598ecfc88439583b51567e64.tar.gz |
Bug#22943 syscall pruning in libmysql
- Set the timeout values only where needed
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index a20f2a6506c..f83313a8fd8 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -89,8 +89,8 @@ static int send_file(THD *thd) The client might be slow loading the data, give him wait_timeout to do the job */ - old_timeout = thd->net.read_timeout; - thd->net.read_timeout = thd->variables.net_wait_timeout; + old_timeout= net->read_timeout; + net_set_read_timeout(net, thd->variables.net_wait_timeout); /* We need net_flush here because the client will not know it needs to send @@ -134,7 +134,7 @@ static int send_file(THD *thd) error = 0; err: - thd->net.read_timeout = old_timeout; + net_set_read_timeout(net, old_timeout); if (fd >= 0) (void) my_close(fd, MYF(0)); if (errmsg) |