[pve-devel] [PATCH v2 guest-common 06/10] snapshot_rollback: make sure newer replication snapshots are deleted

Fabian Ebner f.ebner at proxmox.com
Tue May 5 10:27:19 CEST 2020


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 at proxmox.com>
---

This is not related to the locking issues.

 PVE/AbstractConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm
index 70311df..eefeeb9 100644
--- a/PVE/AbstractConfig.pm
+++ b/PVE/AbstractConfig.pm
@@ -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 {
-- 
2.20.1





More information about the pve-devel mailing list