snapshot_rollback: make sure newer replication snapshots are deleted

Commit a1dfeff3a8 changed the behavior
for Replication::prepare with last_sync=0, so use last_sync=1 instead.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-05-05 10:27:19 +02:00 committed by Fabian Grünbichler
parent 82a0485717
commit c261973c52

View File

@ -948,7 +948,7 @@ sub snapshot_rollback {
# remove all local replication snapshots (jobid => undef)
my $logfunc = sub { my $line = shift; chomp $line; print "$line\n"; };
PVE::Replication::prepare($storecfg, $sorted_volids, undef, 0, undef, $logfunc);
PVE::Replication::prepare($storecfg, $sorted_volids, undef, 1, undef, $logfunc);
}
$class->foreach_volume($snap, sub {