[libvirt PATCH 26/80] qemu: Separate success and failure path in qemuMigrationDstFinish

Peter Krempa pkrempa at redhat.com
Wed May 11 13:58:33 UTC 2022


On Tue, May 10, 2022 at 17:20:47 +0200, Jiri Denemark wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_migration.c | 45 ++++++++++++++++++++++-----------------
>  1 file changed, 26 insertions(+), 19 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list