mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-22 03:00:29 +08:00
Fixed the Table Cache bugs.
Also makes t/lib/bash/collect_system_info.sh actually call setup_commands.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user