]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Avoid removing persistent config if migration fails
authorLuyao Huang <lhuang@redhat.com>
Thu, 25 Jun 2015 01:38:57 +0000 (09:38 +0800)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 25 Jun 2015 08:18:39 +0000 (10:18 +0200)
commit09444724bc85d75ea3250778701e2e3b3d016df5
tree53960f8ab75c34415b8de61848ffffb9fe68729e
parent84d0286ef027c68cee610cd9d0475920ff22bd1e
qemu: Avoid removing persistent config if migration fails

When migration fails in qemuMigrationPrepareAny, we unconditionally call
qemuDomainRemoveInactive, which should only be called for transient
domains. The check for !vm->persistent was accidentally removed by
commit 540c339.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c