finish rebase to master
This commit is contained in:
parent
f89372967f
commit
d08b2882b7
12
syncoid
12
syncoid
|
@ -867,13 +867,13 @@ sub syncdataset {
|
||||||
# snapshots first.
|
# snapshots first.
|
||||||
|
|
||||||
# regather snapshots on source and target
|
# regather snapshots on source and target
|
||||||
%snaps = getsnaps('source',$sourcehost,$sourcefs,$sourceisroot);
|
%snaps = getsnaps('source',$sourcehost,$sourcefs,$sourceisroot,0);
|
||||||
|
|
||||||
if ($targetexists) {
|
if ($targetexists) {
|
||||||
my %targetsnaps = getsnaps('target',$targethost,$targetfs,$targetisroot);
|
my %targetsnaps = getsnaps('target',$targethost,$targetfs,$targetisroot,0);
|
||||||
my %sourcesnaps = %snaps;
|
my %sourcesnaps = %snaps;
|
||||||
%snaps = (%sourcesnaps, %targetsnaps);
|
%snaps = (%sourcesnaps, %targetsnaps);
|
||||||
}
|
}
|
||||||
|
|
||||||
my @to_delete = sort { sortsnapshots(\%snaps, $a, $b) } grep {!exists $snaps{'source'}{$_}} keys %{ $snaps{'target'} };
|
my @to_delete = sort { sortsnapshots(\%snaps, $a, $b) } grep {!exists $snaps{'source'}{$_}} keys %{ $snaps{'target'} };
|
||||||
while (@to_delete) {
|
while (@to_delete) {
|
||||||
|
|
Loading…
Reference in New Issue