summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');
}