summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-04-07 18:46:14 +0000
committerGreg Sabino Mullane2010-04-07 18:46:14 +0000
commit89746d01dfca745916150b35388da582b95b7774 (patch)
tree25abed9fe625bf01ac2ea9c8113362003a6e7f9f
parent04da3d7e75baee420d0a07468be50151fcd7fd83 (diff)
Fix some old code paths so the txn_idle tests work again.
-rwxr-xr-xcheck_postgres.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index f331770da..eafdea1aa 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -6611,12 +6611,12 @@ sub check_txn_idle {
$max = $current if $current > $max;
}
if ($MRTG) {
- $stats{$db->{dbname}} = $max;
+ $stats{$db->{dbname}} = $max < 0 ? 0 : $max;
next;
}
$db->{perf} .= msg('maxtime', $max);
if ($max < 0) {
- add_unknown 'T-EXCLUDE-DB';
+ add_unknown msg('txnidle-none');
next;
}
@@ -6710,7 +6710,6 @@ WHERE xact_start IS NOT NULL $USERWHERECLAUSE
## Use of skip_item means we may have no matches
if ($maxdb eq '?') {
if ($USERWHERECLAUSE) { ## needed?
- #add_unknown 'T-EXCLUDE-DB';
add_unknown msg('tttt-nomatch');
}
else {