Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Solve a race condition with monitor op starting slave before change m…

…aster
  • Loading branch information...
commit be82f13680ca61d759819c4da5c37064c26183c5 1 parent 3f91cff
Yves Trudeau authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  heartbeat/mysql
2  heartbeat/mysql
@@ -631,7 +631,7 @@ set_master() {
631 631 # reset with RESET MASTER.
632 632
633 633 ocf_run $MYSQL $MYSQL_OPTIONS_REPL \
634   - -e "CHANGE MASTER TO MASTER_HOST='$new_master', \
  634 + -e "STOP SLAVE;CHANGE MASTER TO MASTER_HOST='$new_master', \
635 635 MASTER_USER='$OCF_RESKEY_replication_user', \
636 636 MASTER_PASSWORD='$OCF_RESKEY_replication_passwd' $master_params"
637 637 }

0 comments on commit be82f13

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