Commit 0767d34c authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

In "topup" mode, concurrent inserts make the row count unreliable

parent a9cc50bb
......@@ -143,8 +143,8 @@ sub write_output {
my $dest_row_increase = $self->get_row_count($dest_dbc, $table) - $self->param('dest_before_all');
if($mode eq 'topup') {
if($src_before == $dest_row_increase) {
$self->warning("Successfully added $src_before '$table' rows");
if($src_before < $dest_row_increase) {
$self->warning("Cannot check success/failure in this mode, but the number of '$table' rows in target increased by $dest_row_increase (higher than $src_before)");
} else {
die "Could not add rows: $src_before '$table' rows from source copied into $dest_row_increase rows in target\n";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment