mirror of https://github.com/jimsalterjrs/sanoid
Fix bookmark last snapshot sync early exit
This commit is contained in:
parent
74b61d149f
commit
89d3cbcda3
7
syncoid
7
syncoid
|
|
@ -726,11 +726,8 @@ sub syncdataset {
|
||||||
|
|
||||||
# do a normal replication if bookmarks aren't used or if previous
|
# do a normal replication if bookmarks aren't used or if previous
|
||||||
# bookmark replication was only done to the next oldest snapshot
|
# bookmark replication was only done to the next oldest snapshot
|
||||||
if (!$bookmark || $nextsnapshot) {
|
# edge case: skip repilcation if bookmark replication used the latest snapshot
|
||||||
if ($matchingsnap eq $newsyncsnap) {
|
if ((!$bookmark || $nextsnapshot) && !($matchingsnap eq $newsyncsnap)) {
|
||||||
# edge case: bookmark replication used the latest snapshot
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
($exit, $stdout) = syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $matchingsnap, $newsyncsnap, defined($args{'no-stream'}));
|
($exit, $stdout) = syncincremental($sourcehost, $sourcefs, $targethost, $targetfs, $matchingsnap, $newsyncsnap, defined($args{'no-stream'}));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue