summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-12-18 20:40:38 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2011-12-18 20:40:38 +0100
commita5a22e9f641623886ec7c051e7ae40eadad0b023 (patch)
tree55a9c27576b0dab700e230880e92143411b23dee /sql/net_serv.cc
parent468104567f6b0a1fe552f38717005f286c402125 (diff)
downloadmariadb-git-a5a22e9f641623886ec7c051e7ae40eadad0b023.tar.gz
Small adjustements to threadpool
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index 9011d570497..4a35dc52fa3 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -1159,6 +1159,8 @@ void my_net_set_read_timeout(NET *net, uint timeout)
{
DBUG_ENTER("my_net_set_read_timeout");
DBUG_PRINT("enter", ("timeout: %d", timeout));
+ if(net->read_timeout == timeout)
+ DBUG_VOID_RETURN;
net->read_timeout= timeout;
#ifdef NO_ALARM
if (net->vio)
@@ -1172,6 +1174,8 @@ void my_net_set_write_timeout(NET *net, uint timeout)
{
DBUG_ENTER("my_net_set_write_timeout");
DBUG_PRINT("enter", ("timeout: %d", timeout));
+ if(net->write_timeout == timeout)
+ DBUG_VOID_RETURN;
net->write_timeout= timeout;
#ifdef NO_ALARM
if (net->vio)