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