mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Set operation on completed migration job
Without this patch libvirt would just report the operation of a completed job as "unknown" instead of "incoming migration". https://bugzilla.redhat.com/show_bug.cgi?id=1457052 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
46f5eca4b2
commit
49d30bc2e2
@ -1292,6 +1292,7 @@ qemuMigrationEatCookie(virQEMUDriverPtr driver,
|
|||||||
int cookieinlen,
|
int cookieinlen,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
qemuDomainObjPrivatePtr priv = dom->privateData;
|
||||||
qemuMigrationCookiePtr mig = NULL;
|
qemuMigrationCookiePtr mig = NULL;
|
||||||
|
|
||||||
/* Parse & validate incoming cookie (if any) */
|
/* Parse & validate incoming cookie (if any) */
|
||||||
@ -1340,6 +1341,9 @@ qemuMigrationEatCookie(virQEMUDriverPtr driver,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & QEMU_MIGRATION_COOKIE_STATS && mig->jobInfo)
|
||||||
|
mig->jobInfo->operation = priv->job.current->operation;
|
||||||
|
|
||||||
return mig;
|
return mig;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
Loading…
Reference in New Issue
Block a user