From 06582008fd8c16a6ea0ab1fc77a3f62d2e67327e Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Wed, 20 Mar 2019 12:32:25 -0300 Subject: [PATCH] PT-1575 Fix pt-mysql-summary to recognize PXC --- bin/pt-mysql-summary | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"