diff --git a/bin/pt-mysql-summary b/bin/pt-mysql-summary index eb69e6c5..e2126803 100755 --- a/bin/pt-mysql-summary +++ b/bin/pt-mysql-summary @@ -2358,10 +2358,9 @@ report_mysql_summary () { section_percona_server_features "$dir/mysql-variables" section "Percona XtraDB Cluster" - local has_wsrep="$(get_var "wsrep_on" "$dir/mysql-variables")" + local has_wsrep=$($CMD_MYSQL $EXT_ARGV -ss -e 'show session variables like "%wsrep_on%";' | cut -f2 | grep -i "on") if [ -n "${has_wsrep:-""}" ]; then - local wsrep_on="$(feat_on "$dir/mysql-variables" "wsrep_on")" - if [ "${wsrep_on:-""}" = "Enabled" ]; then + if [ "${has_wsrep:-""}" = "ON" ]; then section_percona_xtradb_cluster "$dir/mysql-variables" "$dir/mysql-status" else name_val "wsrep_on" "OFF"