Merge "Fix return code when backup to remote rgw fails"

This commit is contained in:
Zuul 2020-07-01 21:46:25 +00:00 committed by Gerrit Code Review
commit fc7bb216d2

View File

@ -346,7 +346,10 @@ backup_databases() {
echo "Backup archive size: $ARCHIVE_SIZE"
echo "=================================================================="
set -x
exit 1
# Because the local backup was successful, exit with 0 so the pod will not
# continue to restart and fill the disk with more backups. The ERRORs are
# logged and alerting system should catch those errors and flag the operator.
exit 0
fi
#Only delete the old archive after a successful archive