Comment 2 for bug 1285883

Revision history for this message
Daniel Black (daniel-black) wrote :

using wsrep_log_error to make it go to standard error and ensure that an exit code is returned

RC=0
MYRC=0
(echo $STOP_WSREP .......
|| RC=$? ) | $MYSQL || MYRC=$?
if [ "$MYRC" -ne 0 ]; then
wsrep_log_error "mysql failed with error $MYRC"
exit $MYRC
fi
if [ "$RC" -ne 0 ]; then
wsrep_log_error "mysqldump failed with error $RC"
exit $RC
fi

I'm assuming stderr is part of the sst interface and something useful happens to it? Didn't see it documented however: http://www.codership.com/wiki/doku.php?id=scriptable_state_snapshot_transfer