summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl8
1 files changed, 0 insertions, 8 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index d07274d50..2c5e32c62 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -4763,14 +4763,6 @@ sub check_hot_standby_delay {
$slave = 2;
}
- ## If the slave is "db1" and master "db2", go ahead and switch them around for clearer output
- if (1 == $slave) {
- ($slave, $master) = (2, 1);
- for my $k (qw(host port dbname dbuser dbpass)) {
- ($opt{$k}, $opt{$k . 2}) = ($opt{$k . 2}, $opt{$k}); ## no critic (ProhibitMismatchedOperators)
- }
- }
-
## Get xlog positions
my ($moffset, $s_rec_offset, $s_rep_offset);