projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ef506
)
'no warnings' makes Perl::Critic cry. Try a different way.
author
Greg Sabino Mullane
<
[email protected]
>
Wed, 9 Oct 2013 18:14:05 +0000
(14:14 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Wed, 9 Oct 2013 18:14:05 +0000
(14:14 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index d0625bd071355ba9d30fa738d0c29b5d2acc1d23..fae344f665de79c0bd0714cb72c22c7d871db1aa 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-6139,14
+6139,13
@@
sub check_replicate_row {
if (!defined $sourcedb) {
ndie msg('rep-norow', "$table.$col");
}
- my $value1 = $info1->{db}[0]{slurp}[0]{c};
+ my $value1 = $info1->{db}[0]{slurp}[0]{c}
|| ''
;
my $info2 = run_command($select, { dbnumber => 2 });
my $slave = 0;
for my $d (@{$info2->{db}}) {
$slave++;
- my $value2 = $d->{slurp}[0]{c};
- no warnings 'uninitialized';
+ my $value2 = $d->{slurp}[0]{c} || '';
if ($value1 ne $value2) {
ndie msg('rep-notsame');
}