From eac905b632b40d7434c9db3c8e9426c10c4a280f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Nov 2016 17:39:41 +0100 Subject: [PATCH] MariaDB GTID mode #272 --- mysqltuner.pl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 74e0fc1..5642c6f 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -525,9 +525,9 @@ sub validate_tuner_version { debugprint "$httpcli is available."; debugprint -"$httpcli -e timestamping=off -T 5 -O - '$url' 2>$devnull| grep 'my \$tunerversion'| cut -d\\\" -f2"; +"$httpcli -e timestamping=off -t 1 -T 5 -O - '$url' 2>$devnull| grep 'my \$tunerversion'| cut -d\\\" -f2"; $update = -`$httpcli -e timestamping=off -T 5 -O - '$url' 2>$devnull| grep 'my \$tunerversion'| cut -d\\\" -f2`; +`$httpcli -e timestamping=off -t 1 -T 5 -O - '$url' 2>$devnull| grep 'my \$tunerversion'| cut -d\\\" -f2`; chomp($update); compare_tuner_version($update); return; @@ -1025,6 +1025,10 @@ sub get_all_vars { $myvar{'have_innodb'} = "NO"; } + # Support GTID MODE FOR MARIADB + # Issue MariaDB GTID mode #272 + $myvar{'gtid_mode'}=$myvar{'gtid_strict_mode'} if (defined($myvar{'gtid_strict_mode'})); + $myvar{'have_threadpool'} = "NO"; if ( defined( $myvar{'thread_pool_size'} ) and $myvar{'thread_pool_size'} > 0 ) @@ -2466,7 +2470,6 @@ sub mysql_stats { } # Memory usage - infoprint "Physical Memory : " . hr_bytes($physical_memory); infoprint "Max MySQL memory : " . hr_bytes( $mycalc{'max_peak_memory'} ); infoprint "Other process memory: " . hr_bytes( get_other_process_memory() );