Commit 7e96711a authored by unknown's avatar unknown

Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint

into  pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint


sql/net_serv.cc:
  Auto merged
parents e673fcde de108e05
...@@ -1126,7 +1126,8 @@ void my_net_set_read_timeout(NET *net, uint timeout) ...@@ -1126,7 +1126,8 @@ void my_net_set_read_timeout(NET *net, uint timeout)
DBUG_PRINT("enter", ("timeout: %d", timeout)); DBUG_PRINT("enter", ("timeout: %d", timeout));
net->read_timeout= timeout; net->read_timeout= timeout;
#ifdef NO_ALARM #ifdef NO_ALARM
vio_timeout(net->vio, 0, timeout); if (net->vio)
vio_timeout(net->vio, 0, timeout);
#endif #endif
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
...@@ -1138,7 +1139,8 @@ void my_net_set_write_timeout(NET *net, uint timeout) ...@@ -1138,7 +1139,8 @@ void my_net_set_write_timeout(NET *net, uint timeout)
DBUG_PRINT("enter", ("timeout: %d", timeout)); DBUG_PRINT("enter", ("timeout: %d", timeout));
net->write_timeout= timeout; net->write_timeout= timeout;
#ifdef NO_ALARM #ifdef NO_ALARM
vio_timeout(net->vio, 1, timeout); if (net->vio)
vio_timeout(net->vio, 1, timeout);
#endif #endif
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment