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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to