Skip to content

Commit

Permalink
* Bug fix: Wrong option for master_ip_failover_script
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorim committed Sep 29, 2011
1 parent e798039 commit 932d79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MHA/MasterFailover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ sub recover_master($$$) {

if ( $new_master->{master_ip_failover_script} ) {
my $command =
"$new_master->{master_ip_failover_script} --command=start -ssh_user=$new_master->{ssh_user} --orig_master_host=$dead_master->{hostname} --orig_master_ip=$dead_master->{ip} --orig_master_port=$dead_master->{port} --new_master_host=$new_master->{hostname} --new_master_ip=$new_master->{ip} --new_master_port=$new_master->{port}";
"$new_master->{master_ip_failover_script} --command=start --ssh_user=$new_master->{ssh_user} --orig_master_host=$dead_master->{hostname} --orig_master_ip=$dead_master->{ip} --orig_master_port=$dead_master->{port} --new_master_host=$new_master->{hostname} --new_master_ip=$new_master->{ip} --new_master_port=$new_master->{port}";
$log->info("Executing master IP activate script:");
$log->info(" $command");
my ( $high, $low ) = MHA::ManagerUtil::exec_system( $command, $g_logfile );
Expand Down

0 comments on commit 932d79e

Please sign in to comment.