[pve-devel] [PATCH v3 guest-common 4/7] replication: remove unused variable and style fixes
Fabian Ebner
f.ebner at proxmox.com
Thu Aug 12 13:01:08 CEST 2021
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
src/PVE/Replication.pm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/PVE/Replication.pm b/src/PVE/Replication.pm
index 3da79be..83fc642 100644
--- a/src/PVE/Replication.pm
+++ b/src/PVE/Replication.pm
@@ -36,18 +36,25 @@ sub find_common_replication_snapshot {
# test if we have a replication_ snapshot from last sync
# and remove all other/stale replication snapshots
- my $last_snapshots = prepare(
- $storecfg, $volumes, $jobid, $last_sync, $parent_snapname, $logfunc);
+ my $last_snapshots =
+ prepare($storecfg, $volumes, $jobid, $last_sync, $parent_snapname, $logfunc);
# prepare remote side
my $remote_snapshots = remote_prepare_local_job(
- $ssh_info, $jobid, $vmid, $volumes, $storeid_list, $last_sync, $parent_snapname, 0, $logfunc);
+ $ssh_info,
+ $jobid,
+ $vmid,
+ $volumes,
+ $storeid_list,
+ $last_sync,
+ $parent_snapname,
+ 0,
+ $logfunc,
+ );
my $base_snapshots = {};
foreach my $volid (@$volumes) {
- my $base_snapname;
-
if (defined($last_snapshots->{$volid}) && defined($remote_snapshots->{$volid})) {
if ($last_snapshots->{$volid}->{$last_sync_snapname} &&
$remote_snapshots->{$volid}->{$last_sync_snapname}) {
--
2.30.2
More information about the pve-devel
mailing list