Show the slave host when doing replicate_row.
authorGreg Sabino Mullane <greg@endpoint.com>
Tue, 24 Feb 2009 18:19:27 +0000 (13:19 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Tue, 24 Feb 2009 18:19:27 +0000 (13:19 -0500)
check_postgres.pl

index 4dee326c537c5d55397ef4b572d87fdd5f1b8f8e..40b8b0ddf6a9e9f00a44ba9ac63ed16671dfaa55 100755 (executable)
@@ -760,6 +760,9 @@ sub add_response {
        my ($type,$msg) = @_;
 
        $db->{host} ||= '';
+       if (defined $opt{host2} and length $opt{host2}->[0]) {
+               $db->{host} .= " => $opt{host2}->[0]";
+       }
        my $header = sprintf q{%s%s%s},
                $action_info->{$action}[0] ? '' : (defined $db->{dbservice} and length $db->{dbservice}) ?
                        qq{service=$db->{dbservice} } : qq{DB "$db->{dbname}" },
@@ -5669,6 +5672,7 @@ Items not specifically attributed are by Greg Sabino Mullane.
   French translations (Guillaume Lelarge)
   Make the backends search return ok if no matches due to inclusion rules,
     per report by Guillaume Lelarge
+  Begin adding comprehensive unit tests.
 
 =item B<Version 2.7.3> (February 10, 2009)