Permalink
Browse files

After promotion, use unset_master instead of stop slave to allow to c…

…omplete relaylog execution
  • Loading branch information...
1 parent fe08fdc commit abd88e12829b556e5e6e26892d28739d2144c5cb @y-trudeau committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 heartbeat/mysql
View
@@ -1076,8 +1076,8 @@ mysql_promote() {
if ( ! mysql_status err ); then
return $OCF_NOT_RUNNING
fi
- ocf_run $MYSQL $MYSQL_OPTIONS_REPL \
- -e "STOP SLAVE"
+
+ unset_master
# Set Master Info in CIB, cluster level attribute
update_data_master_status

0 comments on commit abd88e1

Please sign in to comment.