Skip to content

Commit

Permalink
fix mysqld_safe to work
Browse files Browse the repository at this point in the history
local function variable was overwriting the global one.
also remove unused variable expansion.
  • Loading branch information
vuvova committed Dec 1, 2014
1 parent dbbe831 commit bf3b4a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/mysqld_safe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ log_notice () {
}

eval_log_error () {
cmd="$1"
local cmd="$1"
case $logging in
file) cmd="$cmd >> "`shell_quote_string "$err_log"`" 2>&1" ;;
syslog)
Expand Down Expand Up @@ -966,9 +966,9 @@ do

if [ -z "$url" ]
then
eval_log_error "$cmd $wsrep_start_position_opt $nohup_redir"
eval_log_error "$cmd $wsrep_start_position_opt"
else
eval_log_error "$cmd $wsrep_start_position_opt --wsrep_cluster_address=$url $nohup_redir"
eval_log_error "$cmd $wsrep_start_position_opt --wsrep_cluster_address=$url"
fi

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

0 comments on commit bf3b4a2

Please sign in to comment.