Fixed the Table Cache bugs.

Also makes t/lib/bash/collect_system_info.sh actually call setup_commands.
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-03-28 15:29:57 -03:00
parent 4bb5968c23
commit 3ee8f9ba71
9 changed files with 29 additions and 14 deletions

View File

@@ -1123,7 +1123,7 @@ report_mysql_summary () {
# ########################################################################
section Table_cache
local open_tables=$(get_var Open_tables "$dir/mysql-status")
local table_cache=$(get_table_cache "$dir/mysql-status")
local table_cache=$(get_table_cache "$dir/mysql-variables")
name_val Size $table_cache
name_val Usage "$(fuzzy_pct ${open_tables} ${table_cache})"
@@ -1195,7 +1195,7 @@ report_mysql_summary () {
local dbtodump=""
read dbtodump
local trg_arg="$( get_mysqldump_args "$dir/mysql-variables" )"
get_mysqldump_for "$dir/mysqldump" "${trg_arg}" "${dbtodump}"
get_mysqldump_for "${trg_arg}" "${dbtodump}" > "$dir/mysqldump"
fi
# Test the result by checking the file, not by the exit status, because we