mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-14 03:06:04 +00:00
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:
parent
82a0485717
commit
c261973c52
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user