]> git.proxmox.com Git - pve-storage.git/commitdiff
PVE::ReplicationTools:sync_disk - use $lastsync instead of $job->{lastsync}
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 8 May 2017 05:39:47 +0000 (07:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 8 May 2017 05:39:47 +0000 (07:39 +0200)
Because tghis is the parsed (untainted) value, and we pass this a parameter
to cleanup_snapshot.

PVE/ReplicationTools.pm

index b3fc965a132e9202aae0dd3a5fc28597f5ceb915..25355dc65fc2783df248482857a548c28e0709b2 100644 (file)
@@ -237,7 +237,7 @@ sub sync_guest {
 
        # delet old snapshot if exists
        cleanup_snapshot($disks_status, $snapname, $storage_config, $running, $ip, $lastsync) if
-           $job->{lastsync} != 0;
+           $lastsync != 0;
 
        $job->{lastsync} = $snap_time;
        $job->{state} = "ok";