Skip to content

Commit

Permalink
MDEV-10396: MariaDB does not restart after upgrade on debian 8
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Nirbhay Choubey committed Jul 27, 2016
1 parent a63ceae commit b522c71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/galera_recovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ parse_arguments() {

wsrep_recover_position() {
# 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=$?
if [ $ret -ne 0 ]; then
# Something went wrong, let us also print the error log so that it
Expand Down

0 comments on commit b522c71

Please sign in to comment.