Commit 3212aaa9 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6220 mysqldump will not backup database with --flush-logs parameter and...

MDEV-6220 mysqldump will not backup database with --flush-logs parameter 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.
parent a18eb833
...@@ -586,6 +586,7 @@ then ...@@ -586,6 +586,7 @@ then
then then
# User explicitly asked for syslog, so warn that it isn't used # 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." 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 fi
# Log to err_log file # Log to err_log file
......
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