]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Separate success and failure path in qemuMigrationDstFinish
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)
commit5eb956e284c87531f09c9ffdfc3334c1e3978682
tree1baad131f51d0b18e62f532515bb57f1578d1359
parent4cd9b5cdb8714a19c4fc64f39c25e254e0a034d0
qemu: Separate success and failure path in qemuMigrationDstFinish

Most of the code in "endjob" label is executed only on failure. Let's
duplicate the rest so that the label can be used only in error path
making the success path easier to follow and refactor.

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