]> xenbits.xensource.com Git - libvirt.git/commit
qemu: set jobinfo type to FAILED if job is failed in qemuMigrationRun
authorWang Rui <moon.wangrui@huawei.com>
Mon, 1 Dec 2014 07:05:33 +0000 (15:05 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 1 Dec 2014 07:17:24 +0000 (08:17 +0100)
commit111198210bba41e56fa37816e967d045d482a7f2
tree283c48458f165576f3ed39f2e9db5c27f9dac660
parent0b0cba4dba288792aecf81bea8b87b06ac5acec1
qemu: set jobinfo type to FAILED if job is failed in qemuMigrationRun

If job is failed in qemuMigrationRun, we expect the jobinfo type as
FAILED. But jobinfo type won't be updated until entering
qemuMigrationWaitForCompletion. We should make it updated in all
conditions. Moreover, we can't use qemuMigrationUpdateJobStatus
here because job may fail in libvirt, so we can't query job status
from QEMU.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
src/qemu/qemu_migration.c