diff options
author | Michael Widenius <monty@askmonty.org> | 2011-06-09 16:17:45 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-06-09 16:17:45 +0300 |
commit | 3600e6b81cc52d34205c6ec44c0a3fd78f1e881b (patch) | |
tree | da6ebf356eea169f52e224465f1c0ee459e39b23 /sql/sql_class.cc | |
parent | 6ae42b75b894b5c8a338536861601f2d6d3db686 (diff) | |
download | mariadb-git-3600e6b81cc52d34205c6ec44c0a3fd78f1e881b.tar.gz |
Fixed problem that global status variables 'bytes_recieved' and 'binlog_bytes_written' where not correctly updated
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index ba7e0654331..0db3ea22c78 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1188,11 +1188,11 @@ void add_to_status(STATUS_VAR *to_var, STATUS_VAR *from_var) *(to++)+= *(from++); /* 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->rows_read+= from_var->rows_read; 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->busy_time+= from_var->busy_time; } |