]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Create completed jobData in qemuMigrationSrcComplete
authorJiri Denemark <jdenemar@redhat.com>
Tue, 10 May 2022 13:20:25 +0000 (15:20 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 7 Jun 2022 15:40:20 +0000 (17:40 +0200)
commit776311df230d21b52ad484d58ac6576272d0d65e
treedd99f4191b65abd8e63b35a368a45ad8651dbf61
parentc1d40d2c408b0faed47d759cfd68be6a3961974b
qemu: Create completed jobData in qemuMigrationSrcComplete

Normally the structure is created once the source reports completed
migration, but with post-copy migration we can get here even after
libvirt daemon was restarted. It doesn't make sense to preserve the
structure in our status XML as we're going to rewrite almost all of it
while refreshing the stats anyway. So we just create the structure here
if it doesn't exist to make sure we can properly report statistics of a
completed migration.

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