Skip to content

Commit

Permalink
MDEV-6220 mysqldump will not backup database with --flush-logs parame…
Browse files Browse the repository at this point in the history
…ter and log_error my.cnf parameter defined

some checks were "if [ -n "$err_log" ]", others were "if [ $want_syslog -eq 0 ]",
so when both are set, error log file was only partially initialized.
To avoid this ambiguity we reset want_syslog when error log file is used.
  • Loading branch information
Sergei Golubchik committed Jan 19, 2015
1 parent a18eb83 commit 3212aaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/mysqld_safe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ then
then
# User explicitly asked for syslog, so warn that it isn't used
log_error "Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect."
want_syslog=0
fi

# Log to err_log file
Expand Down

0 comments on commit 3212aaa

Please sign in to comment.