Commit aeb655e0 authored by monty@narttu.mysql.fi's avatar monty@narttu.mysql.fi

Merge with 3.23 to get fix for thr_alarm and big packets

parents 8ad4a240 cd3b680d
...@@ -523,7 +523,7 @@ static my_bool net_safe_read(NET *net, char *buff, uint32 length, ...@@ -523,7 +523,7 @@ static my_bool net_safe_read(NET *net, char *buff, uint32 length,
if ((tmp=vio_read(net->vio,(char*) net->buff, length)) <= 0) if ((tmp=vio_read(net->vio,(char*) net->buff, length)) <= 0)
{ {
my_bool interrupted = vio_should_retry(net->vio); my_bool interrupted = vio_should_retry(net->vio);
if (!thr_got_alarm(&alarmed) && interrupted) if (!thr_got_alarm(alarmed) && interrupted)
{ /* Probably in MIT threads */ { /* Probably in MIT threads */
if (retry_count++ < net->retry_count) if (retry_count++ < net->retry_count)
continue; continue;
...@@ -557,7 +557,7 @@ static my_bool my_net_skip_rest(NET *net, uint32 remain, thr_alarm_t *alarmed, ...@@ -557,7 +557,7 @@ static my_bool my_net_skip_rest(NET *net, uint32 remain, thr_alarm_t *alarmed,
DBUG_ENTER("my_net_skip_rest"); DBUG_ENTER("my_net_skip_rest");
DBUG_PRINT("enter",("bytes_to_skip: %u", (uint) remain)); DBUG_PRINT("enter",("bytes_to_skip: %u", (uint) remain));
if (!thr_alarm_in_use(&alarmed)) if (!thr_alarm_in_use(alarmed))
{ {
my_bool old_mode; my_bool old_mode;
if (!thr_alarm(alarmed,net->read_timeout, alarm_buff) || if (!thr_alarm(alarmed,net->read_timeout, alarm_buff) ||
......
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