Permalink
Browse files

Other forgotten rm of tmpfile

  • Loading branch information...
1 parent 4886c5f commit 5166c976a1f3aebf547b9632fd1e6f321cd19f45 @y-trudeau committed Sep 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit 5166c97

Please sign in to comment.