[MDEV-10230] --wsrep_on option no longer passed through by mysqld_safe Created: 2016-06-14  Updated: 2016-06-28  Resolved: 2016-06-17

Status: Closed
Project: MariaDB Server
Component/s: Galera, Scripts & Clients, wsrep
Affects Version/s: 10.1.14
Fix Version/s: 10.1.15

Type: Bug Priority: Major
Reporter: Hartmut Holzgraefe Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Environment:

linux



 Description   

MDEV-7067 added a --wsrep_on option to mysqld_safe which shadows the mysqld option by the same name. Unlike the --wsrep-provider option --wsrep_on is not passed through to mysld though.



 Comments   
Comment by Hartmut Holzgraefe [ 2016-06-14 ]

Suggested fix:

use append_arg_to_args in --wsrep_on option processing to pass through to mysqld

diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index c96fc45..ccef5c3 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -328,14 +328,21 @@ parse_arguments() {
       --timezone=*) TZ="$val"; export TZ; ;;
       --flush[-_]caches) flush_caches=1 ;;
       --numa[-_]interleave) numa_interleave=1 ;;
-      --wsrep[-_]on) wsrep_on=1 ;;
-      --skip[-_]wsrep[-_]on) wsrep_on=0 ;;
+      --wsrep[-_]on)
+        wsrep_on=1
+        append_arg_to_args "$arg"
+        ;;
+      --skip[-_]wsrep[-_]on)
+        wsrep_on=0
+        append_arg_to_args "$arg"
+        ;;
       --wsrep[-_]on=*)
         if echo $val | grep -iq '\(ON\|1\)'; then
           wsrep_on=1
         else
           wsrep_on=0
         fi
+        append_arg_to_args "$arg"
         ;;
       --wsrep[-_]urls=*) wsrep_urls="$val"; ;;
       --wsrep[-_]provider=*)

Generated at Thu Feb 08 07:40:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.