diff options
author | msvensson@pilot.mysql.com <> | 2007-01-29 14:33:53 +0100 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2007-01-29 14:33:53 +0100 |
commit | 007d170ad2af225225844ac258c91b6766fb0a69 (patch) | |
tree | 5ff0b0c41c572069a02dbb2c6eabec3d10d8900d /sql/sql_repl.cc | |
parent | a079f20aa80b56c5821d8b43bb102b8ca37dfbad (diff) | |
parent | 7eaa82ea38e1a9f0598ecfc88439583b51567e64 (diff) | |
download | mariadb-git-007d170ad2af225225844ac258c91b6766fb0a69.tar.gz |
Merge pilot.mysql.com:/home/msvensson/mysql/bug22943/my41-bug22943
into pilot.mysql.com:/home/msvensson/mysql/bug22943/my50-bug22943
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 88a752f7acb..01b1149a2b3 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -91,8 +91,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 @@ -136,7 +136,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) |