Skip to content

Commit bf3b4a2

Browse files
committed
fix mysqld_safe to work
local function variable was overwriting the global one. also remove unused variable expansion.
1 parent dbbe831 commit bf3b4a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/mysqld_safe.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ log_notice () {
153153
}
154154

155155
eval_log_error () {
156-
cmd="$1"
156+
local cmd="$1"
157157
case $logging in
158158
file) cmd="$cmd >> "`shell_quote_string "$err_log"`" 2>&1" ;;
159159
syslog)
@@ -966,9 +966,9 @@ do
966966

967967
if [ -z "$url" ]
968968
then
969-
eval_log_error "$cmd $wsrep_start_position_opt $nohup_redir"
969+
eval_log_error "$cmd $wsrep_start_position_opt"
970970
else
971-
eval_log_error "$cmd $wsrep_start_position_opt --wsrep_cluster_address=$url $nohup_redir"
971+
eval_log_error "$cmd $wsrep_start_position_opt --wsrep_cluster_address=$url"
972972
fi
973973

974974
if [ $want_syslog -eq 0 -a ! -f "$err_log" ]; then

0 commit comments

Comments
 (0)