X-Git-Url: https://git.8kb.co.uk/?p=slony-i%2Fslony_failover;a=blobdiff_plain;f=slony_failover.pl;h=be02cc5228f6e026b857aa0dcf7aa72f952a4eb1;hp=32c938d00403490247b8a6b823001929d6c5b14c;hb=64090f944683c4519ec551fd78afa9bd5225677e;hpb=9f3302219520eae18c8fdf84ea746ff8f6865925 diff --git a/slony_failover.pl b/slony_failover.pl index 32c938d..be02cc5 100644 --- a/slony_failover.pl +++ b/slony_failover.pl @@ -1168,7 +1168,7 @@ sub writeMoveSet { if (($subs) && ($g_resubscribe_method eq 'subscribe')) { foreach my $other_subs (@g_cluster) { - if (($other_subs->[6] ne "INACTIVE") && ($other_subs->[0] != $from) && ($other_subs->[0] != $to)) { + if (($other_subs->[6] eq "ACTIVE") && ($other_subs->[0] != $from) && ($other_subs->[0] != $to)) { if (exists $g_backups{$other_subs->[0]}) { $line_prefix = "# (Node $other_subs->[0] unavailable) "; @@ -1236,7 +1236,7 @@ sub writeMoveSet { if (($subs) && ($g_resubscribe_method eq 'resubscribe')) { foreach my $other_subs (@g_cluster) { - if (($other_subs->[6] ne "INACTIVE") && ($other_subs->[0] != $from) && ($other_subs->[0] != $to)) { + if (($other_subs->[6] eq "ACTIVE") && ($other_subs->[0] != $from) && ($other_subs->[0] != $to)) { if (exists $g_backups{$other_subs->[0]}) { $line_prefix = "# (Node $other_subs->[0] unavailable) "; } @@ -1264,7 +1264,7 @@ sub writeMoveSet { print SLONFILE ($line_prefix . "ECHO 'Issuing resubscribe for provider $to -> receiver $other_subs->[0]';\n"); print SLONFILE ($line_prefix . - "SUBSCRIBE NODE ( ORIGIN = $to, PROVIDER = $to, RECEIVER = $other_subs->[0] );\n"); + "RESUBSCRIBE NODE ( ORIGIN = $to, PROVIDER = $to, RECEIVER = $other_subs->[0] );\n"); } } else {