]> git.proxmox.com Git - pve-guest-common.git/commitdiff
snapshot_rollback: make sure newer replication snapshots are deleted
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 5 May 2020 08:27:19 +0000 (10:27 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 5 May 2020 09:11:37 +0000 (11:11 +0200)
Commit a1dfeff3a8502544123245ea61ad62cbe97803b7 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>
PVE/AbstractConfig.pm

index 70311df8476a958243a98452e28e183dbe89c14a..eefeeb9df1e935b53c7b57edcd078b12dc5899c1 100644 (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 {