]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Avoid dangling migration-out job when client dies
authorJiri Denemark <jdenemar@redhat.com>
Mon, 19 Mar 2012 15:48:43 +0000 (16:48 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 21 Mar 2012 16:31:09 +0000 (17:31 +0100)
commit1fdc53c385762e5c8188ef7562fe51af0a83cecf
tree17e448bae32c68d04c8ca22e2591361ffba8e9fd
parent527d867a945d49d11d5222286711058da98641fe
qemu: Avoid dangling migration-out job when client dies

When a client which started non-p2p migration dies in a bad time, the
source libvirtd never clears the migration job and almost nothing can be
done with the domain without restarting the daemon. This patch makes use
of connection close callbacks and ensures that migration job is properly
discarded when the client disconnects.
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h