mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: driver: Don't try to update blockjob status in qemuDomainGetBlockJobInfo
All blockjobs get their status updated by events from qemu, so this code no longer makes sense. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
acd71408b2
commit
d41e1aa169
@ -17442,20 +17442,6 @@ qemuDomainGetBlockJobInfo(virDomainPtr dom,
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
/* Snoop block copy operations, so future cancel operations can
|
||||
* avoid checking if pivot is safe. Save the change to XML, but
|
||||
* we can ignore failure because it is only an optimization. We
|
||||
* hold the vm lock, so modifying the in-memory representation is
|
||||
* safe, even if we are a query rather than a modify job. */
|
||||
if (disk->mirror &&
|
||||
rawInfo.ready != 0 &&
|
||||
info->cur == info->end && !disk->mirrorState) {
|
||||
virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
|
||||
|
||||
disk->mirrorState = VIR_DOMAIN_DISK_MIRROR_STATE_READY;
|
||||
ignore_value(virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps));
|
||||
virObjectUnref(cfg);
|
||||
}
|
||||
endjob:
|
||||
qemuDomainObjEndJob(driver, vm);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user