]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix type of a completed job
authorJiri Denemark <jdenemar@redhat.com>
Thu, 11 Jan 2018 19:47:50 +0000 (20:47 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 12 Jan 2018 09:45:31 +0000 (10:45 +0100)
commite8784e7868d44a2ce796b376cf78f0f6c61c114a
tree70ddda753fc24913e16973fcf52941ca014d05a3
parent237f045d9a9d84a52e645b490d14ad0b66e5b8ed
qemu: Fix type of a completed job

Libvirt 3.7.0 and earlier libvirt reported a migration job as completed
immediately after QEMU finished sending migration data at which point
migration was not really complete yet. Commit v3.7.0-29-g3f2d6d829e
fixed this, but caused a regression in reporting statistics for
completed jobs which started reporting the job as still running. This
happened because the completed job statistics including the job status
are copied from the running job before we finally mark it as completed.

Let's make sure QEMU_DOMAIN_JOB_STATUS_COMPLETED is always set in the
completed job info even when the job has not finished yet.

https://bugzilla.redhat.com/show_bug.cgi?id=1523036

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_migration.c