The output file is initialised, so doesn't need to be created on
success. Treat the return code file the same way.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
_out="${CTDB_TEST_TMP_DIR}/rpc_failure_output"
: >"$_out"
_rc_file="${CTDB_TEST_TMP_DIR}/rpc_result"
+ echo 0 >"$_rc_file"
(
# Subshell to restrict scope variables...
if [ "$_numfails" -eq -1 ]; then
_unhealthy=false
- echo 0 >"$_rc_file"
rpc_failure \
"WARNING: statistics changed but" \
"$_rpc_service" \
>"$_out"
else
_unhealthy=false
- echo 0 >"$_rc_file"
fi
if [ $restart_every -gt 0 ] &&