[check_postgres] [commit] Catch bad query earlier
check_postgres at bucardo.org
check_postgres at bucardo.org
Tue Sep 23 14:00:33 UTC 2008
Committed by Greg Sabino Mullane <greg at endpoint.com>
Catch bad query earlier
---
check_postgres.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/check_postgres.pl b/check_postgres.pl
index 8859502..3e32dcb 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -2723,7 +2723,9 @@ sub check_txn_time {
my $found = 0;
for $db (@{$info->{db}}) {
-
+ if (!exists $db->{ok}) {
+ ndie 'Query failed';
+ }
if ($db->{slurp} !~ /\w/ and $USERWHERECLAUSE) {
add_ok 'T-EXCLUDE-USEROK';
next;
--
1.5.5.4
More information about the Check_postgres
mailing list