mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: Create domain object at the end of qemuMigrationDstFinish
We don't need the object until we get to the "endjob" label. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
73b81fc55f
commit
b85eed31a5
@ -5949,11 +5949,7 @@ qemuMigrationDstFinish(virQEMUDriver *driver,
|
|||||||
VIR_DOMAIN_RUNNING,
|
VIR_DOMAIN_RUNNING,
|
||||||
VIR_DOMAIN_RUNNING_MIGRATED);
|
VIR_DOMAIN_RUNNING_MIGRATED);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
dom = virGetDomain(dconn, vm->def->name, vm->def->uuid, vm->def->id);
|
|
||||||
|
|
||||||
if (inPostCopy) {
|
|
||||||
/* The only RESUME event during post-copy migration is triggered by
|
/* The only RESUME event during post-copy migration is triggered by
|
||||||
* QEMU when the running domain moves from the source to the
|
* QEMU when the running domain moves from the source to the
|
||||||
* destination host, but then the migration keeps running until all
|
* destination host, but then the migration keeps running until all
|
||||||
@ -5981,6 +5977,8 @@ qemuMigrationDstFinish(virQEMUDriver *driver,
|
|||||||
/* Guest is successfully running, so cancel previous auto destroy */
|
/* Guest is successfully running, so cancel previous auto destroy */
|
||||||
qemuProcessAutoDestroyRemove(driver, vm);
|
qemuProcessAutoDestroyRemove(driver, vm);
|
||||||
|
|
||||||
|
dom = virGetDomain(dconn, vm->def->name, vm->def->uuid, vm->def->id);
|
||||||
|
|
||||||
endjob:
|
endjob:
|
||||||
if (!dom &&
|
if (!dom &&
|
||||||
!(flags & VIR_MIGRATE_OFFLINE) &&
|
!(flags & VIR_MIGRATE_OFFLINE) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user