Skip to content

Commit 9651818

Browse files
authored
Merge branch 'master' into master
2 parents f61cbce + df33e7a commit 9651818

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mysqltuner.pl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,22 +5063,22 @@ sub mariadb_galera {
50635063
push @adjvars, "innodb_autoinc_lock_mode should be 2 when using parallel slave";
50645064
}
50655065
}
5066-
5067-
if (get_wsrep_option('gcs.limit') != get_wsrep_option('wsrep_slave_threads') *5 ) {
5068-
badprint "gcs.limit should be equal to 5 * wsrep_slave_threads";
5069-
push @adjvars, "gcs.limit= wsrep_slave_threads * 5";
5066+
5067+
if (get_wsrep_option('gcs.fc_limit') != $myvar{'wsrep_slave_threads'} * 5 ) {
5068+
badprint "gcs.fc_limit should be equal to 5 * wsrep_slave_threads";
5069+
push @adjvars, "gcs.fc_limit= wsrep_slave_threads * 5";
50705070
}
50715071
else {
5072-
goodprint "gcs.limit is equal to 5 * wsrep_slave_threads";
5072+
goodprint "gcs.fc_limit is equal to 5 * wsrep_slave_threads";
50735073
}
5074-
if (get_wsrep_option('gcs.fc_factor') == 0.8 ) {
5074+
if (get_wsrep_option('gcs.fc_factor') != 0.8 ) {
50755075
badprint "gcs.fc_factor should be equal to 0.8";
50765076
push @adjvars, "gcs.fc_factor=0.8";
50775077
}
50785078
else {
5079-
goodprint "gcs.limit is equal to 5 * wsrep_slave_threads";
5079+
goodprint "gcs.fc_factor is equal to 0.8";
50805080
}
5081-
if (get_wsrep_option('wsrep_flow_control_paused') > 0.02) {
5081+
if ($mystat{'wsrep_flow_control_paused'} > 0.02) {
50825082
badprint "Fraction of time node pause flow control > 0.02";
50835083
}
50845084
else {

0 commit comments

Comments
 (0)