Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Other forgotten rm of tmpfile

  • Loading branch information...
commit 5166c976a1f3aebf547b9632fd1e6f321cd19f45 1 parent 4886c5f
Yves Trudeau authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  heartbeat/mysql
2  heartbeat/mysql
View
@@ -680,6 +680,7 @@ unset_master(){
-e "STOP SLAVE IO_THREAD"
if [ $? -gt 0 ]; then
ocf_log err "Error stopping slave IO thread"
+ rm -f $tmpfile
exit $OCF_ERR_GENERIC
fi
@@ -1199,6 +1200,7 @@ mysql_notify() {
ocf_run $MYSQL $MYSQL_OPTIONS_REPL \
-e "KILL ${thread}"
done
+ rm -f $tmpfile
else
ocf_log info "Ignoring post-demote notification execpt for my own demotion."
fi
Please sign in to comment.
Something went wrong with that request. Please try again.