diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-18 20:40:38 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-18 20:40:38 +0100 |
commit | a5a22e9f641623886ec7c051e7ae40eadad0b023 (patch) | |
tree | 55a9c27576b0dab700e230880e92143411b23dee /sql/net_serv.cc | |
parent | 468104567f6b0a1fe552f38717005f286c402125 (diff) | |
download | mariadb-git-a5a22e9f641623886ec7c051e7ae40eadad0b023.tar.gz |
Small adjustements to threadpool
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 4 |
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) |