[pve-devel] [Patch guest-common] set last_sync_snapname after a job restored.

Wolfgang Link w.link at proxmox.com
Tue May 22 15:30:46 CEST 2018


The replication need the last_sync_snapname to clean up
the last snapshot after the replication run done.

If this is not correctly set the snapshot will exist until the next run.
---
 PVE/Replication.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Replication.pm b/PVE/Replication.pm
index 493b77d..0d05547 100644
--- a/PVE/Replication.pm
+++ b/PVE/Replication.pm
@@ -63,6 +63,7 @@ sub find_common_replication_snapshot {
 		foreach my $remote_snap (@desc_sorted_snap) {
 		    if (defined($last_snapshots->{$volid}->{$remote_snap})) {
 			$base_snapshots->{$volid} = $remote_snap;
+			$last_sync_snapname = $remote_snap;
 			last;
 		    }
 		}
-- 
2.11.0





More information about the pve-devel mailing list