mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00: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,
|
||||
unsigned int flags)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = dom->privateData;
|
||||
qemuMigrationCookiePtr mig = NULL;
|
||||
|
||||
/* 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;
|
||||
|
||||
error:
|
||||
|
Loading…
x
Reference in New Issue
Block a user