From a2bb3ab149614493571a9a9e7b14caf2c05538cf Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 28 May 2009 00:57:31 +0000 Subject: [PATCH] Fixed an issue where MEMORY tables would appear in the fragmented table list, which caused some confusion. (Thanks to Gary Barrueto) --- mysqltuner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 4f15de2..b27eb93 100644 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -31,7 +31,7 @@ # Ryan Novosielski Michael Scheidell # Blair Christensen Hans du Plooy # Victor Trac Everett Barnes -# Tom Krouper +# Tom Krouper Gary Barrueto # # Inspired by Matthew Montgomery's tuning-primer.sh script: # http://forge.mysql.com/projects/view.php?id=44 @@ -437,7 +437,7 @@ sub check_storage_engines { $enginestats{$engine} = $size; $enginecount{$engine} = $count; } - $fragtables = `mysql $mysqllogin -Bse "SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free > 0"`; + $fragtables = `mysql $mysqllogin -Bse "SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free > 0 AND NOT ENGINE='MEMORY';"`; chomp($fragtables); } else { # MySQL < 5 servers take a lot of work to get table sizes