Fixed a dumb logic error with the concurrent_insert check

This commit is contained in:
Major Hayden 2007-08-13 22:01:28 +00:00
parent 04e84a7752
commit efc984f945

View file

@ -505,14 +505,12 @@ sub mysql_stats {
# Performance options # Performance options
if ($mysqlvermajor == 3 || ($mysqlvermajor == 4 && $mysqlverminor == 0)) { if ($mysqlvermajor == 3 || ($mysqlvermajor == 4 && $mysqlverminor == 0)) {
push(@generalrec,"Upgrade to MySQL 4.1+ to use concurrent MyISAM inserts"); push(@generalrec,"Upgrade to MySQL 4.1+ to use concurrent MyISAM inserts");
} elsif ($myvar{'concurrent_insert'} eq "OFF" || $myvar{'concurrent_insert'} < 1) { } elsif ($myvar{'concurrent_insert'} eq "OFF") {
if ($mysqlvermajor == 4) {
push(@generalrec,"Enable concurrent_insert by setting it to 'ON'"); push(@generalrec,"Enable concurrent_insert by setting it to 'ON'");
} else { } elsif ($myvar{'concurrent_insert'} eq 0) {
push(@generalrec,"Enable concurrent_insert by setting it to 1"); push(@generalrec,"Enable concurrent_insert by setting it to 1");
} }
} }
}
sub make_recommendations { sub make_recommendations {
print "-------- Recommendations -----------------------------------------------------\n"; print "-------- Recommendations -----------------------------------------------------\n";