Skip to content

Commit 95e40e0

Browse files
committed
False impression on key buffer usage
#573 (2)
1 parent 8013980 commit 95e40e0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mysqltuner.pl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,10 +3164,15 @@ sub mysql_stats {
31643164
infoprint
31653165
"Skipped name resolution test due to missing skip_name_resolve in system variables.";
31663166
}
3167-
elsif ( -r "/etc/psa/.psa.shadow" and $result{'Variables'}{'skip_name_resolve'} eq 'OFF') {
3168-
infoprint "CPanel and Flex system skip-name-resolve should be on";
3169-
push (@generalrec, "cPanal and skip-name-resolve: https://support.cpanel.net/hc/en-us/articles/360052752094");
3170-
push (@adjvars, "skip-name-resolve=0");
3167+
#Cpanel and Skip name resolve
3168+
elsif ( -r "/usr/local/cpanel/cpanel" ){
3169+
if ( $result{'Variables'}{'skip_name_resolve'} eq 'OFF') {
3170+
badprint "CPanel and Flex system skip-name-resolve should be on";
3171+
push (@generalrec, "name resolution is enabled due to cPanel doesn't support this disabled.");
3172+
push (@adjvars, "skip-name-resolve=0");
3173+
else {
3174+
infoprint "CPanel and Flex system skip-name-resolve should be on";
3175+
}
31713176
}
31723177
elsif ( $result{'Variables'}{'skip_name_resolve'} eq 'OFF' ) {
31733178
badprint

0 commit comments

Comments
 (0)