Skip to content

Commit

Permalink
MDEV-20614: Syntax error, and option put in wrong place
Browse files Browse the repository at this point in the history
A syntax error in the mysqld_multi.sh script has been fixed
here + a "--defaults-group-suffix" option has been moved to
the top of the mysqld options list.
  • Loading branch information
sysprg committed Sep 27, 2019
1 parent c76873f commit bc70862
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/mysqld_multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ sub start_mysqlds()
$options[$j]= quote_shell_word($options[$j]);
$tmp.= " $options[$j]";
}
elseif ("--defaults-group-suffix=" eq substr($options[$j], 0, 24))
elsif ("--defaults-group-suffix=" eq substr($options[$j], 0, 24))
{
$suffix_found= 1;
}
Expand All @@ -368,14 +368,15 @@ sub start_mysqlds()
print "wanted mysqld binary.\n\n";
$info_sent= 1;
}
$com.= $tmp;

if (!$suffix_found)
{
$com.= " --defaults-group-suffix=";
$com.= $groups[$i];
}

$com.= $tmp;

if ($opt_wsrep_new_cluster) {
$com.= " --wsrep-new-cluster";
}
Expand Down

0 comments on commit bc70862

Please sign in to comment.