Skip to content

Commit

Permalink
Merge pull request jimsalterjrs#911 from phreaker0/fix-error-handling
Browse files Browse the repository at this point in the history
handle error output for filtered replications
  • Loading branch information
jimsalterjrs authored Apr 18, 2024
2 parents fdbbe28 + 6c1e31e commit 45b1ce9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncoid
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,11 @@ sub syncincremental {
my $snapa = $intsnaps[$i];
my $snapb = $intsnaps[$i + 1];
writelog('INFO', "Performing an incremental sync between '$snapa' and '$snapb'");
syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1) == 0 or return $?;
(my $ret, my $stdout) = syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $snapa, $snapb, 1);

if ($ret != 0) {
return ($ret, $stdout);
}
}

# Return after finishing the -i syncs so that we don't try to do another -I
Expand Down

0 comments on commit 45b1ce9

Please sign in to comment.