Skip to content

Commit

Permalink
MDEV-20981 wsrep_sst_mariabackup fails silently when mariabackup is n…
Browse files Browse the repository at this point in the history
…ot installed (#1406)

Make sure failure to find mariabackup binary does not terminate
the script silently, terminate with a clear error message instead
  • Loading branch information
hholzgra authored and Jan Lindström committed Nov 8, 2019
1 parent b1ab2ba commit c4a844c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/wsrep_sst_mariabackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,14 @@ fi
pcmd="pv $pvopts"
declare -a RC

set +e
INNOBACKUPEX_BIN=$(which mariabackup)
if test -z $INNOBACKUPEX_BIN
then
wsrep_log_error 'mariabackup binary not found in $PATH'
exit 42
fi
set -e
XBSTREAM_BIN=mbstream
XBCRYPT_BIN=xbcrypt # Not available in MariaBackup

Expand Down

0 comments on commit c4a844c

Please sign in to comment.