Skip to content
Browse files

Adding ALL with special mysql comment for 5.5+ to reset slave

  • Loading branch information...
1 parent 5166c97 commit f9659af447891d3daf06ab1a63c2cca0ad8b48fa @y-trudeau committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 heartbeat/mysql
View
2 heartbeat/mysql
@@ -709,7 +709,7 @@ unset_master(){
fi
ocf_run $MYSQL $MYSQL_OPTIONS_REPL \
- -e "RESET SLAVE;"
+ -e "RESET SLAVE /*!50500 ALL */;"
if [ $? -gt 0 ]; then
ocf_log err "Failed to reset slave"
exit $OCF_ERR_GENERIC

0 comments on commit f9659af

Please sign in to comment.
Something went wrong with that request. Please try again.