[pve-devel] [PATCH pve-guest-common] PVE::Replication - cleanup job state on job removal

Dietmar Maurer dietmar at proxmox.com
Tue Jun 27 10:29:22 CEST 2017


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 PVE/Replication.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Replication.pm b/PVE/Replication.pm
index 7608d4d..da3ee05 100644
--- a/PVE/Replication.pm
+++ b/PVE/Replication.pm
@@ -206,6 +206,7 @@ sub replicate {
 	# remove all local replication snapshots (lastsync => 0)
 	prepare($storecfg, $sorted_volids, $jobid, 0, undef, $logfunc);
 
+	PVE::ReplicationState::write_job_state($jobcfg, undef);
 	PVE::ReplicationConfig::delete_job($jobid); # update config
 	$logfunc->("job removed");
 
-- 
2.11.0




More information about the pve-devel mailing list