Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed an issue where MEMORY tables would appear in the fragmented tab…

…le list, which caused some confusion. (Thanks to Gary Barrueto)
  • Loading branch information...
commit a2bb3ab149614493571a9a9e7b14caf2c05538cf 1 parent 62e42e3
Major Hayden authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  mysqltuner.pl
4  mysqltuner.pl
@@ -31,7 +31,7 @@
31 31
 #   Ryan Novosielski       Michael Scheidell
32 32
 #   Blair Christensen      Hans du Plooy
33 33
 #   Victor Trac            Everett Barnes
34  
-#   Tom Krouper
  34
+#   Tom Krouper            Gary Barrueto
35 35
 #
36 36
 # Inspired by Matthew Montgomery's tuning-primer.sh script:
37 37
 # http://forge.mysql.com/projects/view.php?id=44
@@ -437,7 +437,7 @@ sub check_storage_engines {
437 437
 			$enginestats{$engine} = $size;
438 438
 			$enginecount{$engine} = $count;
439 439
 		}
440  
-		$fragtables = `mysql $mysqllogin -Bse "SELECT COUNT(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND Data_free > 0"`;
  440
+		$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';"`;
441 441
 		chomp($fragtables);
442 442
 	} else {
443 443
 		# MySQL < 5 servers take a lot of work to get table sizes

0 notes on commit a2bb3ab

Please sign in to comment.
Something went wrong with that request. Please try again.