From 177c9f6695cc90b0397e45658708d830feab618b Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Mon, 26 Nov 2018 13:41:36 +0000 Subject: [PATCH] ignore galera check when wsrep_on = 0 #353 --- mysqltuner.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index d6c6cfc..5c0ecaa 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -5183,7 +5183,10 @@ sub mariadb_galera { debugprint "\t" . trim($gvar) . " = " . $myvar{$gvar}; $result{'Galera'}{'variables'}{$gvar} = $myvar{$gvar}; } - + if ( not defined( $myvar{'wsrep_on'} ) or $myvar{'wsrep_on'} ne "ON" ) { + infoprint "Galera is disabled."; + return; + } debugprint "Galera wsrep provider Options:"; my @galera_options = get_wsrep_options; $result{'Galera'}{'wsrep options'} = get_wsrep_options();