Commit c4a844ca authored by Hartmut Holzgraefe's avatar Hartmut Holzgraefe Committed by Jan Lindström

MDEV-20981 wsrep_sst_mariabackup fails silently when mariabackup is not installed (#1406)

Make sure failure to find mariabackup binary does not terminate
the script silently, terminate with a clear error message instead
parent b1ab2ba5
...@@ -83,7 +83,14 @@ fi ...@@ -83,7 +83,14 @@ fi
pcmd="pv $pvopts" pcmd="pv $pvopts"
declare -a RC declare -a RC
set +e
INNOBACKUPEX_BIN=$(which mariabackup) 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 XBSTREAM_BIN=mbstream
XBCRYPT_BIN=xbcrypt # Not available in MariaBackup XBCRYPT_BIN=xbcrypt # Not available in MariaBackup
......
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