Commit b522c71e authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-10396: MariaDB does not restart after upgrade on debian 8

During wsrep position recovery, galera_recovery.sh script
redirected mysqld's error log to a temporary file in order
to find the start position. This, however, will not work
if --log-error is configured for the server.

Fixed by using --log-error in command line instead of
redirection.

[Patch contributed by Philippe MARASSE]
parent a63ceaea
...@@ -68,7 +68,8 @@ parse_arguments() { ...@@ -68,7 +68,8 @@ parse_arguments() {
wsrep_recover_position() { wsrep_recover_position() {
# Redirect server's error log to the log file. # Redirect server's error log to the log file.
eval /usr/sbin/mysqld $cmdline_args --user=$user --wsrep_recover 2> "$log_file" eval /usr/sbin/mysqld $cmdline_args --user=$user --wsrep_recover \
--log-error="$log_file"
ret=$? ret=$?
if [ $ret -ne 0 ]; then if [ $ret -ne 0 ]; then
# Something went wrong, let us also print the error log so that it # Something went wrong, let us also print the error log so that it
......
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