diff options
author | unknown <jani@rhols221.adsl.netsonic.fi> | 2004-09-13 16:48:01 +0300 |
---|---|---|
committer | unknown <jani@rhols221.adsl.netsonic.fi> | 2004-09-13 16:48:01 +0300 |
commit | 9c00cf3575ad58d2852c2624b9f82551885329b8 (patch) | |
tree | 485e9a69f70cbaae2501e87e055f69d6aa354c3f /sql/sql_test.cc | |
parent | b1fe1b74521257ab3cf8e4b58c78725a0b9d1864 (diff) | |
download | mariadb-git-9c00cf3575ad58d2852c2624b9f82551885329b8.tar.gz |
Added per thread status variables, after review, patch v1.1.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index 5c467402497..6cffa9df2c6 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -468,16 +468,20 @@ read_first: %10lu\n\ write: %10lu\n\ delete %10lu\n\ update: %10lu\n", - ha_read_key_count, ha_read_next_count, - ha_read_rnd_count, ha_read_first_count, - ha_write_count, ha_delete_count, ha_update_count); + thd->status_var.ha_read_key_count, + thd->status_var.ha_read_next_count, + thd->status_var.ha_read_rnd_count, + thd->status_var.ha_read_first_count, + thd->status_var.ha_write_count, + thd->status_var.ha_delete_count, + thd->status_var.ha_update_count); pthread_mutex_unlock(&LOCK_status); printf("\nTable status:\n\ Opened tables: %10lu\n\ Open tables: %10lu\n\ Open files: %10lu\n\ Open streams: %10lu\n", - opened_tables, + thd->status_var.opened_tables, (ulong) cached_tables(), (ulong) my_file_opened, (ulong) my_stream_opened); |