Commit 3600e6b8 authored by Michael Widenius's avatar Michael Widenius

Fixed problem that global status variables 'bytes_recieved' and...

Fixed problem that global status variables 'bytes_recieved' and 'binlog_bytes_written' where not correctly updated 
parent 6ae42b75
...@@ -1188,11 +1188,11 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var) ...@@ -1188,11 +1188,11 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var)
*(to++)+= *(from++); *(to++)+= *(from++);
/* Handle the not ulong variables. See end of system_status_var */ /* Handle the not ulong variables. See end of system_status_var */
to_var->bytes_received= from_var->bytes_received; to_var->bytes_received+= from_var->bytes_received;
to_var->bytes_sent+= from_var->bytes_sent; to_var->bytes_sent+= from_var->bytes_sent;
to_var->rows_read+= from_var->rows_read; to_var->rows_read+= from_var->rows_read;
to_var->rows_sent+= from_var->rows_sent; to_var->rows_sent+= from_var->rows_sent;
to_var->binlog_bytes_written= from_var->binlog_bytes_written; to_var->binlog_bytes_written+= from_var->binlog_bytes_written;
to_var->cpu_time+= from_var->cpu_time; to_var->cpu_time+= from_var->cpu_time;
to_var->busy_time+= from_var->busy_time; to_var->busy_time+= from_var->busy_time;
} }
......
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