summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2013-10-09 18:14:05 +0000
committerGreg Sabino Mullane2013-10-09 18:14:05 +0000
commit850caee4cefb10dc0d5198e070ee24d131c3c6b7 (patch)
tree328d1e1a2b61f0302ea34609d42af5ab931798e2 /check_postgres.pl
parent73ef506a6f35ffac5e1970549afb09ab4d8dad0b (diff)
'no warnings' makes Perl::Critic cry. Try a different way.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index d0625bd07..fae344f66 100755
--- 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');
}