1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge pilot.mysql.com:/home/msvensson/mysql/bug22943/my41-bug22943

into  pilot.mysql.com:/home/msvensson/mysql/bug22943/my50-bug22943
This commit is contained in:
msvensson@pilot.mysql.com
2007-01-29 14:33:53 +01:00
9 changed files with 72 additions and 32 deletions

View File

@ -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)