From: Greg Sabino Mullane Date: Wed, 29 Jul 2009 02:37:04 +0000 (-0400) Subject: Make sure we decrement failcount when avoiding dupes on perf output. X-Git-Tag: 2.10.0~15 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js%3Cscript%20data-cfasync=?a=commitdiff_plain;h=95de19b00a113f92079ac368ce9e44d04f37d8c8;p=check_postgres.git Make sure we decrement failcount when avoiding dupes on perf output. --- diff --git a/check_postgres.pl b/check_postgres.pl index 1a1bd7f74..062f0a522 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5438,6 +5438,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Table "$tname" on 1 has constraint "$name" on column "$cname", but 2 does not. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{notexist}{2}) { @@ -5446,6 +5449,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Table "$tname" on 2 has constraint "$name" on column "$cname", but 1 does not. }; } + else { + $failcount--; + } } } } @@ -5455,6 +5461,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" is applied to "$t1" on 1, but to "$t2" on 2. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{columndiff}) { @@ -5463,6 +5472,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" on 1 is applied to $t1.$c1, but to $t2.$c2 on 2. }; } + else { + $failcount--; + } } } if (exists $fail{colconstraints}{defdiff}) { @@ -5471,6 +5483,9 @@ SQL if (! exists $doublec{$name}) { $db->{perf} .= qq{ Constraint "$name" on 1 differs from 2 ("$d1" vs. "$d2")}; } + else { + $failcount--; + } } } }