Fixed the Smooth Flushing report on 5.1, which was broken by the previous commit, and made it work on 5.5

This commit is contained in:
Brian Fraser
2012-11-30 18:17:30 -03:00
parent ee41d4deb4
commit a3527f748c
5 changed files with 402 additions and 5 deletions

View File

@@ -1783,8 +1783,15 @@ section_percona_server_features () {
name_val "Response Time Hist." \
"$(feat_on_renamed "$file" "enable_query_response_time_stats,query_response_time_stats")"
name_val "Smooth Flushing" \
"$(feat_on_renamed "$file" "innodb_adaptive_checkpoint,innodb_adaptive_flushing_method")"
local smooth_flushing="$(feat_on_renamed "$file" "innodb_adaptive_checkpoint,innodb_adaptive_flushing_method")"
if [ "${smooth_flushing:-""}" != "Not Supported" ]; then
if [ -n "$(get_var innodb_adaptive_checkpoint "$file")" ]; then
smooth_flushing="$(feat_on "$file" "innodb_adaptive_checkpoint" ne none)"
else
smooth_flushing="$(feat_on "$file" "innodb_adaptive_flushing_method" ne native)"
fi
fi
name_val "Smooth Flushing" "$smooth_flushing"
name_val "HandlerSocket NoSQL" \
"$(feat_on "$file" handlersocket_port)"