]> git.proxmox.com Git - qemu-server.git/commitdiff
Remove unused 'sharedvm' variable
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 9 Jan 2020 09:23:07 +0000 (10:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Jan 2020 16:43:51 +0000 (17:43 +0100)
AFAICT this one hasn't been in use since commit
'4530494bf9f3d45c4a405c53ef3688e641f6bd8e'

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/QemuMigrate.pm

index 035345889306c0a72c068f8c4d467f5e5d7906cb..49848e8e57af492350283b01d9d3a0b32219a93a 100644 (file)
@@ -282,8 +282,6 @@ sub sync_disks {
        my $other_errors = [];
        my $abort = 0;
 
-       my $sharedvm = 1;
-
        my $log_error = sub {
            my ($msg, $volid) = @_;
 
@@ -310,7 +308,6 @@ sub sync_disks {
 
            # check if storage is available on target node
            PVE::Storage::storage_check_node($self->{storecfg}, $targetsid, $self->{node});
-           $sharedvm = 0; # there is a non-shared disk
 
            PVE::Storage::foreach_volid($dl, sub {
                my ($volid, $sid, $volname) = @_;
@@ -352,8 +349,6 @@ sub sync_disks {
 
            return if $scfg->{shared};
 
-           $sharedvm = 0;
-
            $local_volumes->{$volid}->{ref} = $attr->{referenced_in_config} ? 'config' : 'snapshot';
 
            if ($attr->{cdrom}) {