]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: add the missing jobinfo type in qemuDomainGetJobInfo
authorWang Rui <moon.wangrui@huawei.com>
Tue, 25 Nov 2014 11:51:45 +0000 (19:51 +0800)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 25 Nov 2014 13:40:19 +0000 (14:40 +0100)
Commit 6fcddfcd refactored job statistics but missed the jobinfo type updated
in qemuDomainGetJobInfo. After this patch, we can use virDomainGetJobInfo to
get jobinfo type again.

Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_domain.c

index 334bd407d9aa2d8a67e8188de782c9ddc668fe7a..6513c78c84710a6f942b6e6a39f429749df09bba 100644 (file)
@@ -258,6 +258,7 @@ int
 qemuDomainJobInfoToInfo(qemuDomainJobInfoPtr jobInfo,
                         virDomainJobInfoPtr info)
 {
+    info->type = jobInfo->type;
     info->timeElapsed = jobInfo->timeElapsed;
     info->timeRemaining = jobInfo->timeRemaining;