Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "values are not the same" error in replicate_row when repinfo value is a '0' #110

Merged
merged 1 commit into from
Jun 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions check_postgres.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down