Commit 7ef5257a authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-10230: --wsrep_on option no longer passed through by mysqld_safe

Append mysqld_safe's wsrep-on option to the list of options
used to start mysqld.
[Patch contributed by Hartmut]
parent 90f222ea
...@@ -332,14 +332,21 @@ parse_arguments() { ...@@ -332,14 +332,21 @@ parse_arguments() {
--timezone=*) TZ="$val"; export TZ; ;; --timezone=*) TZ="$val"; export TZ; ;;
--flush[-_]caches) flush_caches=1 ;; --flush[-_]caches) flush_caches=1 ;;
--numa[-_]interleave) numa_interleave=1 ;; --numa[-_]interleave) numa_interleave=1 ;;
--wsrep[-_]on) wsrep_on=1 ;; --wsrep[-_]on)
--skip[-_]wsrep[-_]on) wsrep_on=0 ;; wsrep_on=1
append_arg_to_args "$arg"
;;
--skip[-_]wsrep[-_]on)
wsrep_on=0
append_arg_to_args "$arg"
;;
--wsrep[-_]on=*) --wsrep[-_]on=*)
if echo $val | grep -iq '\(ON\|1\)'; then if echo $val | grep -iq '\(ON\|1\)'; then
wsrep_on=1 wsrep_on=1
else else
wsrep_on=0 wsrep_on=0
fi fi
append_arg_to_args "$arg"
;; ;;
--wsrep[-_]urls=*) wsrep_urls="$val"; ;; --wsrep[-_]urls=*) wsrep_urls="$val"; ;;
--wsrep[-_]provider=*) --wsrep[-_]provider=*)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment