summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2019-10-07 12:34:08 +0200
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2019-10-07 12:34:08 +0200
commit748c97bc19b1e27e968a6eea684cc8930b634fa3 (patch)
tree4078ee4d555d1cdd8868946ca6ffea5922eaafae
parent5d3d98b5a91b5c7ea54c81e74e20813a9a561f00 (diff)
downloadmariadb-git-bb-10.1-sysprg.tar.gz
MDEV-20728: /usr/sbin/mysqld: unknown variable 'defaults-group-suffix=mysqld1bb-10.1-sysprg
When the mysqld_multi script passes the --defaults-group-suffix option to mysqld, it must remove the initial substring with the group name ("mysqld") from option value, because otherwise substring "mysqld" will be added to the group name and then the group name will contain the word "mysqld" twice, which is wrong, because mysqld itself adds the suffix received to the group name.
-rw-r--r--scripts/mysqld_multi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
index 7cf22bdaf3c..5f359551f0d 100644
--- a/scripts/mysqld_multi.sh
+++ b/scripts/mysqld_multi.sh
@@ -372,7 +372,7 @@ sub start_mysqlds()
if (!$suffix_found)
{
$com.= " --defaults-group-suffix=";
- $com.= $groups[$i];
+ $com.= substr($groups[$i],6);
}
$com.= $tmp;