Skip to content

Commit 62f2b03

Browse files
jmrenouardCopilot
andauthored
Update mysqltuner.pl
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3c19f78 commit 62f2b03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mysqltuner.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6178,6 +6178,8 @@ sub mariadb_galera {
61786178
if ( defined( $myvar{'wsrep_applier_threads'} ) ) {
61796179
$wsrep_threads_var_name = 'wsrep_applier_threads';
61806180
}
6181+
# Use 1 as a fallback if $myvar{$wsrep_threads_var_name} is undefined or zero,
6182+
# to ensure there is at least one thread for Galera replication.
61816183
my $wsrep_threads_value = $myvar{$wsrep_threads_var_name} || 1;
61826184

61836185
infoprint "$wsrep_threads_var_name: " . $wsrep_threads_value;

0 commit comments

Comments
 (0)