summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 77d532681..61a1d883d 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -6442,11 +6442,11 @@ sub check_replicate_row {
if (!defined $sourcedb) {
ndie msg('rep-norow', "$table.$col");
}
- my $value1 = $info1->{db}[0]{slurp}[0]{c} || '';
+ my $value1 = (defined($info1->{db}[0]{slurp}[0]{c})?$info1->{db}[0]{slurp}[0]{c}:'');
my $numslaves = @{$info1->{db}} - 1;
for my $d ( @{$info1->{db}}[1 .. $numslaves] ) {
- my $value2 = $d->{slurp}[0]{c} || '';
+ my $value2 = (defined($d->{slurp}[0]{c})?$d->{slurp}[0]{c}:'');
if ($value1 ne $value2) {
ndie msg('rep-notsame');
}