Revision 712b826d src/rm/RequestManagerSaveDisk.cc

View differences:

src/rm/RequestManagerSaveDisk.cc
112 112
        goto error_vm_get;
113 113
    }
114 114

  
115
    vm->save_disk(disk_id, img_id);
115
    rc = vm->save_disk(disk_id, img_id);
116

  
117
    if ( rc == -1 )
118
    {
119
        vm->unlock();
120
        goto error_vm_get_disk_id;
121
    }
116 122

  
117 123
    VirtualMachineSaveDisk::vmpool->update(vm);
118 124

  
......
137 143
    oss.str(get_error(method_name, "VM", vm_id));
138 144
    goto error_common;
139 145

  
146
error_vm_get_disk_id:
147
    oss.str(get_error(method_name, "DISK from VM", vm_id));
148
    goto error_common;
149

  
140 150
error_authenticate:
141 151
    oss.str(authenticate_error(method_name));
142 152
    goto error_common_lock;

Also available in: Unified diff