summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-07-12 02:02:52 +0000
committerGreg Sabino Mullane2009-07-12 02:02:52 +0000
commit1f2de60db9bdf6060d568f9be4333061505d629c (patch)
treeca4049261a308b4a08066b363f4721a2c3076f27 /check_postgres.pl
parentc647d3205012681167d60400d084e2c7946f4aa2 (diff)
Don't hardcode the English translation fallback.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 559c9607d..7e1105e06 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -5665,11 +5665,11 @@ sub check_checkpoint {
ndie msg('checkpoint-badver2');
}
- ## See pgsql/src/bin/pg_controldata/po/*
my $regex = msg('checkpoint-po');
if ($res !~ /$regex\s*(.+)/) { ## no critic (ProhibitUnusedCapture)
## Just in case, check the English one as well
- if ($res !~ /Time of latest checkpoint:\s*(.+)/) {
+ $regex = msg('checkpoint-po', 'en');
+ if ($res !~ /$regex\s*(.+)/) {
ndie msg('checkpoint-noregex', $dir);
}
}