mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
qemu: blockcopy: Don't remove existing disk mirror info
When creating a new disk mirror the new struct is stored in a separate variable until everything went well. The removed hunk would actually remove existing mirror information for example when the api would be run if a mirror still exists.
This commit is contained in:
1 parent
7dbfd12426
commit
02b364e186
1 file changed
-4
@@ -15410,10 +15410,6 @@ qemuDomainBlockCopy(virDomainObjPtr vm,
|
||||
endjob:
|
||||
if (need_unlink && unlink(dest))
|
||||
VIR_WARN("unable to unlink just-created %s", dest);
|
||||
if (ret < 0 && disk) {
|
||||
virStorageSourceFree(disk->mirror);
|
||||
disk->mirror = NULL;
|
||||
}
|
||||
virStorageSourceFree(mirror);
|
||||
if (!qemuDomainObjEndJob(driver, vm))
|
||||
vm = NULL;
|
||||
|
||||
Reference in new issue
Block a user